# Desynchronize position when change browser tab

**URL:** <https://forum.babylonjs.com/t/desynchronize-position-when-change-browser-tab/27516>\
**Category:** Questions\
**Created:** [February 10, 2022, 3:57am UTC](https://forum.babylonjs.com/t/desynchronize-position-when-change-browser-tab/27516 "2022-02-10T03:57:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abner\_Corona](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/abner_corona/32/14314_2.png) [@Abner\_Corona](https://forum.babylonjs.com/u/Abner_Corona)\
**Post date:** [February 10, 2022, 3:57am UTC](https://forum.babylonjs.com/t/desynchronize-position-when-change-browser-tab/27516/1 "2022-02-10T03:57:01Z")

</div>

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)](https://playground.babylonjs.com/#6YFZFB#17)  
 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/9/4/9407188fc25f35355c1c166fb1d50d6398848201.png)

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/8/8/88bd08a89fb6051e6d758d1b25dc85d5e5ea636e.png)

---

<div class="post-metadata">

**Author:** ![tanpopo](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/tanpopo/32/32025_2.png) [@tanpopo](https://forum.babylonjs.com/u/tanpopo)\
**Post date:** [February 10, 2022, 9:07am UTC](https://forum.babylonjs.com/t/desynchronize-position-when-change-browser-tab/27516/2 "2022-02-10T09:07:50Z")

</div>

Not sure if I catch you, but are you trying to make something like this?[https://playground.babylonjs.com/#6YFZFB#18](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.

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [March 11, 2022, 11:47am UTC](https://forum.babylonjs.com/t/desynchronize-position-when-change-browser-tab/27516/3 "2022-03-11T11:47:31Z")

</div>

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