Can anyone explain me in depth what is fixed Timestep, I am not able to understand by reading the documentation…
So it’s to do with Physics. Basically the physics system does not run every frame, it runs in order to catch up with the current frame rate. Every time the physics loop runs it moves the time forward by the fixed time step.
So if your fixed time step is 0.02s you are asking for 50 updates a second. Let’s say your game is running at 100fps - the physics system will be called once every other frame (roughly) so that physics keeps up with the game.
If your game is running at 25fps the physics system will run twice every frame for the same reason.
So basically every time the physics loop runs “0.02” seconds will have passed in simulation time - irrespective of how long has passed in real time since the last call. The loop will continue to go around while the physics time is behind the real time of the game.