public void Tick() { if (isTraining) // && debugFrameCounter < 2) { //Debug.Log("FixedUpdate isTraining"); { if (evaluationManager.allEvalsComplete) { /*if(playingCurGen % 100 == 0) { * long prevMem = GC.GetTotalMemory(false); * SaveTraining("auto"); * GC.Collect(); * long newMem = GC.GetTotalMemory(false); * Debug.Log("Garbage Collection!!! old: " + prevMem.ToString() + ", new: " + newMem.ToString()); * }*/ // NEXT GEN!!! NextGeneration(); } else { gameManager.cameraEnabled = true; evaluationManager.Tick(teamsConfig); } debugFrameCounter++; } }
public void Tick() { if (isTraining) // && debugFrameCounter < 2) { //Debug.Log("FixedUpdate isTraining"); { if (evaluationManager.allEvalsComplete) { NextGeneration(); } else { //gameManager.cameraEnabled = true; evaluationManager.Tick(teamsConfig); } debugFrameCounter++; } }