How can I keep CesiumJS running when window is in background

I’m not a CesiumJS developer or user, I’m just playing a game made of CesiumJS called GeoFS.

I really want the game to be keep running when the window is not in the front.

Hi @584021849032,

Thanks for reaching out with your question. Whether or not an application using Cesium will keep running when it moves to the background is largely up to the developer. There are some limitations which are not the in the developers control, for example web browsers have default settings to reduce resource consumption when a tab is inactive, which can disable a program like Cesium.

Have you reached out to the game developers to ask if they have explored enabling the game to stay active when the window is not in front?

Thanks,
Luke

Thank you for replying! I had not yet asked the game developers but I am planning to do so.

However I had discoverd that it seems like the game is running “on top of” rendering, because as I implemented a requestAnimationFrame by JavaScript, the game starts to run in the background.