Fixed Time step game loop

This is proposal for Babylon to ship a default fixed Time step game loop. Fixed time step game loop is important for running deterministic and reproducible game logic. This is a requirement for high quality multiplayer network synchronization. This topic has been previously discussed at: Fixed Update Loop - #6 by MackeyK24
with inclusive conclusion.

The default babylon.js loop is currently variable and inconsistent between browser and headless environments.
a static 16ms timeout in headless environments and requestanimation frame variable delta timesteps on browser Babylon.js/thinEngine.ts at master · BabylonJS/Babylon.js · GitHub

1 Like

Adding @Cedric cause I think we do support this for physics ?

Yes, it’s already supported and documented : Using A Physics Engine | Babylon.js Documentation

2 Likes