News for hackers. Stuff that matters.
Re:Tab throttling and more performance improvements in Chrom... by akiselev on Tuesday November 17, 2020 @04:59PM (#25130503)
What do the background tabs do with server side events or websockets? You should be able to just open a connection and send a message over WS or have the server drop the connection on every tick. You can probably do it without a server by hitting an address that will blackhole the connection instead of refusing it and use an AbortController [1] to timeout the request.

[1] https://developer.mozilla.org/en-US/docs/Web/API/AbortContro...

Re:Tab throttling and more performance improvements in Chrom... by Aardwolf on Tuesday November 17, 2020 @05:04PM (#25130563)
The question is mainly about a client-side game, no multiplayer or servers.

Here is some context (just a random thread about the issue, threads like this pop up regularly):

https://www.reddit.com/r/incremental_games/comments/j86u5m/g...

5 years ago such games worked in background tabs. Then browsers started throttling background tabs (for understandable reasons) and everyone learned to keep it in a foreground tab in a window you don't use. Now the latter will also stop working.

Re:Tab throttling and more performance improvements in Chrom... by sildur on Wednesday November 18, 2020 @03:10AM (#25134260)
I'm tired of too-smart browsers, I want a dumb one.