# Not pause engine while game is minimized?

**URL:** <https://forum.defold.com/t/not-pause-engine-while-game-is-minimized/27428>\
**Category:** Questions\
**Created:** [August 16, 2018, 9:06pm UTC](https://forum.defold.com/t/not-pause-engine-while-game-is-minimized/27428 "2018-08-16T21:06:38Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pkeod](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pkeod/32/606_2.png) [@Pkeod](https://forum.defold.com/u/Pkeod)\
**Post date:** [August 16, 2018, 9:06pm UTC](https://forum.defold.com/t/not-pause-engine-while-game-is-minimized/27428/1 "2018-08-16T21:06:38Z")

</div>

Is there anything I can do to force the engine to continue to simulate while the window is not focused / minimized? This really hurts multiplayer games.

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [August 17, 2018, 7:23am UTC](https://forum.defold.com/t/not-pause-engine-while-game-is-minimized/27428/2 "2018-08-17T07:23:24Z")

</div>

No, I don’t think so. Not at the moment. @Andreas_Tadic, any ideas?

---

<div class="post-metadata">

**Author:** ![Andreas\_Tadic](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/a/e9bcb4/32.png) [@Andreas\_Tadic](https://forum.defold.com/u/Andreas_Tadic)\
**Post date:** [August 17, 2018, 7:37am UTC](https://forum.defold.com/t/not-pause-engine-while-game-is-minimized/27428/3 "2018-08-17T07:37:30Z")

</div>

Created ticket DEF-3409 - Engine pause update schema  
We should be looking into detail on how this should be handled.

---

<div class="post-metadata">

**Author:** ![Pkeod](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pkeod/32/606_2.png) [@Pkeod](https://forum.defold.com/u/Pkeod)\
**Post date:** [August 17, 2018, 8:15am UTC](https://forum.defold.com/t/not-pause-engine-while-game-is-minimized/27428/4 "2018-08-17T08:15:20Z")

</div>

I did a test and it looks like headless builds on Windows still run when minimized.

---

<div class="post-metadata">

**Author:** ![Pkeod](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pkeod/32/606_2.png) [@Pkeod](https://forum.defold.com/u/Pkeod)\
**Post date:** [August 20, 2018, 2:11am UTC](https://forum.defold.com/t/not-pause-engine-while-game-is-minimized/27428/5 "2018-08-20T02:11:27Z")

</div>

It would also be good to be able to keep the updates going while the window is being resized even if the screen is not drawn. Also for the sake of multiplayer games.

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [August 20, 2018, 1:19pm UTC](https://forum.defold.com/t/not-pause-engine-while-game-is-minimized/27428/6 "2018-08-20T13:19:15Z")

</div>

Currently, perhaps you could handle the window minimized/focus lost events, and then put the update time on the main collection to 0?

---

<div class="post-metadata">

**Author:** ![decoded](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/decoded/32/7134_2.png) [@decoded](https://forum.defold.com/u/decoded)\
**Post date:** [August 20, 2018, 4:01pm UTC](https://forum.defold.com/t/not-pause-engine-while-game-is-minimized/27428/7 "2018-08-20T16:01:50Z")

</div>

One issue I can think of, at least with Windows builds I’v tested:  
the engine doesn’t report _lost focus_ or _window minimized_, when the minimized button is pressed. Assuming because the engine pauses before sending it.

It does report the window _lost focus_ and window _minimized_ events, but not until after it is maximized.(when the engine un-pauses?) It also receives the window _gained focus_ and _maximized_ at the same time… hmph

I do like the idea here - Having the option to allow continuous update while minimized. Yes please. 🙂 That would work nicely.

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [August 23, 2018, 7:41am UTC](https://forum.defold.com/t/not-pause-engine-while-game-is-minimized/27428/8 "2018-08-23T07:41:42Z")

</div>

> [@Pkeod](#):
>
> It would also be good to be able to keep the updates going while the window is being resized even if the screen is not drawn.

Reported as DEF-3044

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [August 23, 2018, 9:28am UTC](https://forum.defold.com/t/not-pause-engine-while-game-is-minimized/27428/9 "2018-08-23T09:28:13Z")

</div>

We have DEF-2520 as a ticket for these focus lost/gained issues.

---

<div class="post-metadata">

**Author:** ![Pkeod](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pkeod/32/606_2.png) [@Pkeod](https://forum.defold.com/u/Pkeod)\
**Post date:** [June 26, 2019, 4:56am UTC](https://forum.defold.com/t/not-pause-engine-while-game-is-minimized/27428/10 "2019-06-26T04:56:16Z")

</div>

This is still an issue with multiplayer games. Simulation needs to be able to be set to continue without pause when game window is minimized / resized / moved.
