Search Unity

Several questions

Discussion in 'ML-Agents' started by Roboserg, Sep 9, 2021.

  1. Roboserg

    Roboserg

    Joined:
    Jun 3, 2018
    Posts:
    83
    1. I am running training with --no-graphics, yet I still hear the in game sound. Is there a way to build the game without sound?
    2. I also tried building the game with "Server Build". Will it make the game run faster for training?
    3. I am training with --time-scale 50 yet since I can hear the sound the game still runs real time with the compiled build. If I train in the editor everything works, and it trains faster than real time.
     
    Last edited: Sep 9, 2021
  2. mbaske

    mbaske

    Joined:
    Dec 31, 2017
    Posts:
    473
    To get the best performance, I would generally disable all game features that aren't required for training, incl. sound.
    Audio isn't affected by timescale and always plays in real time AFAIK, since it runs on its own thread.
     
    Roboserg likes this.
  3. RankNFyle

    RankNFyle

    Joined:
    Jan 4, 2021
    Posts:
    31
    Not sure if this will help, but Edit->Project Settings->Audio->Disable Unity Audio (leave checked)
     
    Roboserg likes this.