Continue game execution when minimized?

I've noticed that, for some reason, MV's games pause execution when minimized. Is there any way to change that?

I need the game to continue running even when minimized because of certain things such as loading of custom maps. If a server in my game has a custom map and its hosted on a slow file server, or the file is big or the player's connection is slow, the client may take a long time to download it and thus its expected that the player will alt tab and do other things while they wait. Having the execution pause in such moments would be annoying for the player and thats something I would like to avoid.


From my experience, I don't think its NW.js' fault, since I've made other types of applications using it and I've never noticed a pause in execution. How can I fix this?
Chromium will slow down the requestAnimationFrame loop a great deal when minimized. There's no way to change that other than reprogram Chromium or asynchronous programming.
Chromium will slow down the requestAnimationFrame loop a great deal when minimized. There's no way to change that other than reprogram Chromium or asynchronous programming.
Yea, after some googling that seems to be the case.

I've made some tests and seems that moving part of the code to run before a reserveTransfer solves big part of my problem, although it still is going to take longer for the game to load when its minimized during said loading. I'll try to request an option to change how the requestAnimationFrame loop works in NW.js .


EDIT: Wait, I've found something.
http://docs.nwjs.io/en/latest/References/Command Line Options/#-disable-raf-throttling

By adding this line to package.json, that problem is fixed:
Code:
"chromium-args": "--disable-raf-throttling"
Adding "chromium-args": "--disable-raf-throttling" to package.json will no longer make the game pause when minimized or when the window is unfocused.
Solution for:
RPG Maker MV game pauses when minimzed.
RPG Maker MV game pauses when window loses focus.
RPG Maker MV game pauses when alt tab.
RPG Maker MV timer pauses when minimzed.
RPG Maker MV timer pauses when window loses focus.
RPG Maker MV timer pauses when alt tab.

@DanMillerPlays , please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/continue-game-execution-when-minimized.114515/