浏览代码

Use Time.captureFramerate to ensure synchrony between update and fixed update (#341)

/develop-generalizationTraining-TrainerController
GitHub 7 年前
当前提交
5e8ba256
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
      unity-environment/Assets/ML-Agents/Scripts/Academy.cs

2
unity-environment/Assets/ML-Agents/Scripts/Academy.cs


Time.timeScale = trainingConfiguration.timeScale;
Application.targetFrameRate = trainingConfiguration.targetFrameRate;
QualitySettings.vSyncCount = 0;
Time.captureFramerate = 60;
Monitor.SetActive(false);
}
else

Time.timeScale = inferenceConfiguration.timeScale;
Application.targetFrameRate = inferenceConfiguration.targetFrameRate;
Time.captureFramerate = 60;
Monitor.SetActive(true);
}
}

正在加载...
取消
保存