This component is used to specify different frame rates for different periods, implementing frame rate switching. Currently, the frame rate can be changed only once.
<VariableFramerate>
<VariablePoint frameRate="" time=""/>
<VariablePoint frameRate="" time=""/>
</VariableFramerate> Parameter | Type | Mandatory | Description |
|---|---|---|---|
frameRate | Number | Yes | Frame rate for screen refresh. A larger value indicates better effect but higher power consumption. The default value is 60 and the recommended value is 30. |
time | Number | Yes | Switching interval, in milliseconds. |
Switch between frame rates 5 and 30 for screen refresh. Set the switching interval to 10s. That is, use frame rate 5 first and then switch to frame rate 30 after 10 seconds.
<VariableFramerate>
<VariablePoint frameRate="5" time="0"/>
<VariablePoint frameRate="30" time="10000"/>
</VariableFramerate>
<Wallpaper/>
<Text align="center" text="Move" size="48" color="#000000" y="700" x="240"/>
<Image y="390" x="610" src="ty.png" centerY="151" centerX="136">
<PositionAnimation>
<Position time="0" y="0" x="0"/>
<Position time="1000" y="0" x="-150"/>
<Position time="2000" y="150" x="-150"/>
<Position time="3000" y="150" x="0"/>
<Position time="4000" y="0" x="0"/>
</PositionAnimation>
</Image>
<Unlocker bounceAcceleration="3000" bounceInitSpeed="2000" name="unlocker">
<StartPoint y="#screen_height-300" x="300" h="300" w="470"> </StartPoint>
<EndPoint y="#screen_height-650" x="300" h="300" w="50">
<Path y="#screen_height-300" x="300" h="300" w="470">
<Position y="0" x="0"/>
<Position y="-200" x="0"/>
</Path>
</EndPoint>
</Unlocker>