# How can I disable delta time capping

**URL:** <https://phaser.discourse.group/t/how-can-i-disable-delta-time-capping/1088>\
**Category:** Phaser 3\
**Created:** [February 5, 2019, 5:05pm UTC](https://phaser.discourse.group/t/how-can-i-disable-delta-time-capping/1088 "2019-02-05T17:05:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![charmingny](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/charmingny/32/652_2.png) [@charmingny](https://phaser.discourse.group/u/charmingny)\
**Post date:** [February 5, 2019, 5:05pm UTC](https://phaser.discourse.group/t/how-can-i-disable-delta-time-capping/1088/1 "2019-02-05T17:05:22Z")

</div>

I am writing a multiplayer game. I use a lot of gameobjects and tweens. the problem is if a user go to another tab or another app for a while and come back, the tween will resume from the last state. Because of multiplayer nature, the tween is supposed to catch up the time lost. or end it at target values.

I can avoid using tweens and write my own movement/animation/rotation and use the correct time. but this will be too much of wasting time just for that. I don’t want to reinvent the wheel again.

Is there any other way to fix that issue?

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [February 5, 2019, 11:00pm UTC](https://phaser.discourse.group/t/how-can-i-disable-delta-time-capping/1088/2 "2019-02-05T23:00:02Z")

</div>

If you must use tweens, could you replace them when the game refocuses? Stop (remove) the old ones and start new ones.

---

<div class="post-metadata">

**Author:** ![charmingny](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/charmingny/32/652_2.png) [@charmingny](https://phaser.discourse.group/u/charmingny)\
**Post date:** [February 6, 2019, 11:03am UTC](https://phaser.discourse.group/t/how-can-i-disable-delta-time-capping/1088/3 "2019-02-06T11:03:44Z")

</div>

thanks, I will think about it.
