Desynchronize position when change browser tab

Hi i need help, when i in the game tab in a brower run ok but i change to other tab 2 or 3 seconds the movement of the yellow cube desyncronize
Follow demon sync | Babylon.js Playground (babylonjs.com)
image

Not sure if I catch you, but are you trying to make something like this?https://playground.babylonjs.com/#6YFZFB#18
Changes are around line 118.
As chrome is keeping unactive tabs away from getting cpu source, scene will not render every 16ms.You need to use animationRatio and deltatime together to simulate 60fps.

2 Likes

Hello @Abner_Corona just checking in, was your question answered?