Search Unity

Effects of Time Scale on Time properties

Discussion in 'ML-Agents' started by dhyeythumar, Jan 15, 2021.

  1. dhyeythumar

    dhyeythumar

    Joined:
    Mar 15, 2020
    Posts:
    7
    Is there any effect of the Time Scale on Time properties such as Time.fixedDeltaTime or Time.fixedTime?
    By default, Time Scale is set to 20 in ML-Agents so, what will happen to the Time properties if the Time Scale is increased or decreased?
     
  2. vincentpierre

    vincentpierre

    Joined:
    May 5, 2017
    Posts:
    160
    Increasing the time scale will increase the value of Time.fixedDeltaTime and Time.deltaTime by a factor of Time.TimeScale. In a lot of scenarios, it will help run the game faster and help the Agent learn but it can sometime have negative effects on the Physics of the game since it will be less accurate.
     
    dhyeythumar likes this.
  3. dhyeythumar

    dhyeythumar

    Joined:
    Mar 15, 2020
    Posts:
    7
    So this might lead to the unstable nature of the agent while training? Because I saw that my agent is too unstable at 20x speed and at 10x it's quite stable.