浏览代码

Performance improvements during training

/tag-0.2.0
Arthur Juliani 7 年前
当前提交
8eed1a37
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 3
      unity-environment/Assets/ML-Agents/Scripts/Academy.cs

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


* settings. */
private bool _isCurrentlyInference;
[SerializeField]
private ScreenConfiguration trainingConfiguration = new ScreenConfiguration(80, 80, 1, 100.0f, 60);
private ScreenConfiguration trainingConfiguration = new ScreenConfiguration(80, 80, 1, 100.0f, -1);
[SerializeField]
private ScreenConfiguration inferenceConfiguration = new ScreenConfiguration(1280, 720, 5, 1.0f, 60);
[SerializeField]

QualitySettings.SetQualityLevel(trainingConfiguration.qualityLevel, true);
Time.timeScale = trainingConfiguration.timeScale;
Application.targetFrameRate = trainingConfiguration.targetFrameRate;
QualitySettings.vSyncCount = 0;
}
else
{

正在加载...
取消
保存