Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Fixed Timestep and Maximum Allowed Timestep causing problems

Discussion in 'Editor & General Support' started by fred_gds, Jan 6, 2014.

  1. fred_gds

    fred_gds

    Joined:
    Sep 20, 2012
    Posts:
    184
    Hey,

    I currently have a very strange problem. I have a scene with 10 cars using UnityCar to move. This all works great when my Fixed Timestep is set to 0.02 and my Maximum Allowed Timestep is set to 0.033.

    So as I need to save some performance because the game is designed for mobile devices I changed the settings to this :

    Fixed Timestep = 0.033
    Maximum Timestep Allowed = 0.1

    So the strange thing is that some cars just won't move (the throttle is still pressed for them and all non physic behaviors seem to work) when they are set to another value then the default one mentioned above.

    I tried out a couple other values but each time I increase the fixed timestep and the maximum timestep allowed, some of the cars don't work.

    The timescale is always set to 1.

    I already wrote this once in Unity Answers but nobody seemed to have an idea what causes the problem.