Esempio n. 1
0
 // This method starts the training of the neural networks
 public void StartSim()
 {
     pause    = false;
     isPaused = false;
     InitializeNetworks();
     MyThreadPool.StartThreadPool(10);
     StartCoroutine("Train");
 }
Esempio n. 2
0
    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();
    }