浏览代码

Fix issue.

/main
Yuncong Zhang 6 年前
当前提交
2222b5fd
共有 1 个文件被更改,包括 15 次插入9 次删除
  1. 24
      Runtime/engine/global_settings.cs

24
Runtime/engine/global_settings.cs


namespace Unity.UIWidgets.engine {
public class UIWidgetsGlobalSettings {
private UIWidgetsGlobalSettings() {}
static UIWidgetsGlobalSettings _instance = new UIWidgetsGlobalSettings();
Timer scheduleFrameTimer;
public const int defaultMaxTargetFrameRate = 60;
public const int defaultMinTargetFrameRate = 15;
UIWidgetsGlobalSettings() {
this.speedUpFrameRate = () => { this.defaultSpeedUp(); };
this.coolDownFrameRate = () => { this.defaultCoolDown(); };
}
public Action speedUpFrameRate;
public Action coolDownFrameRate;
public virtual void speedUpFrameRate() {
static UIWidgetsGlobalSettings _instance = new UIWidgetsGlobalSettings();
Timer scheduleFrameTimer;
public const int defaultMaxTargetFrameRate = 60;
public const int defaultMinTargetFrameRate = 15;
void defaultSpeedUp() {
public virtual void coolDownFrameRate() {
void defaultCoolDown() {
this.scheduleFrameTimer?.cancel();
this.scheduleFrameTimer = Window.instance.run(
new TimeSpan(0, 0, 0, 0, 200),

正在加载...
取消
保存