// This method starts the training of the neural networks public void StartSim() { pause = false; isPaused = false; InitializeNetworks(); MyThreadPool.StartThreadPool(10); StartCoroutine("Train"); }
void Awake() { Application.runInBackground = true; int poolThreads = Mathf.Min(3, Mathf.Max(SystemInfo.processorCount - 1, 1)); MyThreadPool.StartThreadPool(poolThreads); // Set this to the terraincontroller thisTerrainController = this; worldController.Reset(); }