Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Adding RequestAnimationFrame to disable-renderer-backgrounding #190

Closed
ghost opened this issue Mar 30, 2016 · 2 comments
Closed

Adding RequestAnimationFrame to disable-renderer-backgrounding #190

ghost opened this issue Mar 30, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Mar 30, 2016

Hi everyone!

We have around 100k, + LoC using a game engine framework and have packaged our app with Electron. We are using Chromium and our game is a multiplayer game and I have a request concerning RequestAnimationFrame.

Currently, we can use the command line argument disable-renderer-backgrounding to prevent the background processes being stopped while chromium is running in the background (or in this case with Electron, the window is minimized).

From this issue here: electron/electron#4925 (comment)

The disable-renderer-backgrounding command line does work, but it does not work with RAF. When I say it doesn't, it doesn't keep RAF updated while Chromium is ran in the background.

I am sincerely hoping that you please let us choose if RAF should run in the background. Our game is multiplayer and our game physics run off RAF. And if a player minimizes the game, we need RAF to keep the game lively. Especially when it's multiplayer. We cannot use Web Workers for physics as this will cause too many problems and add a huge overhead.

I know the design philosophy around stopping RAF when the app is minimized is a good feature for browser usage, but we are developing something totally different in Chromium.

With that said, I ask from the bottom of our heart that the team atleast consider's this as an option.

Kind Regards,

--Nick

@stale stale bot added the wontfix label Mar 15, 2017
@zeke zeke removed the wontfix label May 25, 2017
@SwiTool
Copy link

SwiTool commented Nov 14, 2017

I support this idea. I'm making a bot and on OSX, when I switch between desktops, RAF is disabled and my game is stuck. On Windows it just works.

@MarshallOfSound
Copy link
Member

Hey there,

It's been a long time coming but the libchromiumcontent repository is being archived as it is no longer used in the Electron build system (🎉 this is a good thing).

If your issue is still relevant to Electron in it's current build system (please verify first) then you should probably raise a similar issue on electron/electron.

Thanks 😄

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants