Earlier quoted context omitted.
Could you create a tabbed interface that is just a dumb view of a server state communicated over websockets? Then the user could just open the page in n windows (each on its own tab) and have the same state represented in each?
Problem is, there is no server. All client side. So the tab on which you click "run simulation" is effectively the "server", except it stops running when the user switches tabs.
Chrome will aggressively throttle background tabs
111–120 of 403 posts
Re: Chrome will aggressively throttle background tabs
#112What are we supposed to do about stuff this? Like I wrote a video game https://play.basketball-gm.com/ that lets you open multiple tabs for viewing multiple screens even while simulation is occurring in another tab. But Chrome recently stopped running the simulation if it's in a background tab. Putting my simulation code in a Shared Worker would be nice, except Safari and IE will never support it and it seems likely…
Re: Chrome will aggressively throttle background tabs
#113Earlier quoted context omitted.
I don't believe it will. From https://groups.google.com/a/chromium.org/forum/#!topic/blink... : Background tabs usually do not have a visible impact for user (tabs with audio are always considered foregrounded).
Is that a workaround/loophole then? A tab can play silent or very quiet audio and then run unthrottled?
Re: Chrome will aggressively throttle background tabs
#114Earlier quoted context omitted.
I don't believe it will. From https://groups.google.com/a/chromium.org/forum/#!topic/blink... : Background tabs usually do not have a visible impact for user (tabs with audio are always considered foregrounded).
Is that a workaround/loophole then? A tab can play silent or very quiet audio and then run unthrottled?
Re: Chrome will aggressively throttle background tabs
#115Earlier quoted context omitted.
Explain how that is different?
It's different because it can't just slow down a running task. Say you use up 150ms of CPU time. Chrome isn't going to let another timer fire for 15s. Then, you're late on a whole bunch of work that needs to get done, so the next timer takes 500ms. Chrome then throttles the next timer by 50s. And so on and so forth...
How is this different?
Re: Chrome will aggressively throttle background tabs
#116Earlier quoted context omitted.
Excellent work! Kind of funny the article mentions > This will break the web. But apparently blogger requires javascript just to render static content.
Oh, it's awful, I agree. This is the nicest layout but the JS is terrible. I've reverted to a plain-HTML layout.
Re: Chrome will aggressively throttle background tabs
#117Earlier quoted context omitted.
It's different because it can't just slow down a running task. Say you use up 150ms of CPU time. Chrome isn't going to let another timer fire for 15s. Then, you're late on a whole bunch of work that needs to get done, so the next timer takes 500ms. Chrome then throttles the next timer by 50s. And so on and so forth...
But if your script had 1% of CPU, that 150ms workload would take 15s to complete. Then the next workload would be late in the same way and take 50s to complete. How is this different?
Re: Chrome will aggressively throttle background tabs
#118Earlier quoted context omitted.
Pinned tabs would be an easy solution for this. "Don't throttle pinned tabs"
A common use-case is tabs that are streaming music. I'm not sure if most users are even aware of pinned tabs.
Re: Chrome will aggressively throttle background tabs
#119Earlier quoted context omitted.
Pinned tabs would be an easy solution for this. "Don't throttle pinned tabs"
A common use-case is tabs that are streaming music. I'm not sure if most users are even aware of pinned tabs.
You can see the discussion back and forth, here: https://groups.google.com/a/chromium.org/forum/#!topic/blink...
I can see where that will end up though. Everyone who's app was broken by this change will start playing zero volume audio, then the exception will be yanked back.
With the web poised to be the new platform for applications, there really needs to be some more thought put into how to accomplish that goal. The chrome devs already sunset some solutions in that space, like the HTML5 app cache. Now this. Nobody likes a constantly moving target.
Re: Chrome will aggressively throttle background tabs
#120It's awesome to see Chrome trying to improve performance for people with many tabs open, which is many of us. I use a LOT of tabs, and the best plugin has been The Great Suspender. Highly recommend it for anyone who wants memory & CPU back and keeps many tabs/windows open at once: https://chrome.google.com/webstore/detail/the-great-suspende...
I meet many tab hoarders (always open a new one, never close any, ending up with hundrets), but just can't wrap my head around it! I hate having more than 6-7 simultaneously open because it gets increasingly harder to keep an overview of what you're doing. The same applies for IDE tabs or windows. Too much of them and finding the right one becomes increasingly hard, and losing the thread more likely.