Skip to content
This repository was archived by the owner on Sep 7, 2022. It is now read-only.

Commit d0146dd

Browse files
committed
add description for framerate adjustment feature
1 parent 9cad304 commit d0146dd

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

README-ZH.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ UIWidgets也支持Gif!
202202
#### 七、图片导入设置
203203
请将图片放入StreamingAssets下,而后用```Image.file```读取
204204

205+
#### 八、自动降低帧率
206+
目前在默认情况下,为了保证流畅度,项目在各个平台上均会以最高的刷新频率运行。不过您可以通过在代码中设置```SchedulerBinding.MEnableAutoAdjustFramerate = true```的方式来开启自动降帧的功能:该功能开启后,在UI内容不变的情况下我们将降低项目的刷新率来降低耗电。
207+
205208

206209
## 调试UIWidgets应用程序
207210

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,10 @@ want to show the status bar in your App, you can disable```Start in fullscreen``
213213
#### Image Import Setting
214214
Please put images under StreamingAssets folder, a and loading it using ```Image.file```.
215215

216+
#### Auto Framerate Adjustment
217+
You can enable this feature by setting ```SchedulerBinding.MEnableAutoAdjustFramerate = true``` in your project, which will automatically drop the frame rate of your App to 0 if the UI contents of UIWidgetsPanel is not changed for some time. This will help to prevent battery drain on mobile devices significantly.
218+
219+
Note that this feature is disabled by default though.
216220

217221
## Debug UIWidgets Application
218222

0 commit comments

Comments
 (0)