3 ms·
I think the Chrome developers are trying to tell you you shouldn't be using your users devices as game servers... How about when a tab is backgrounded, a serve
by londons_explore 6y ago
I think the Chrome developers are trying to tell you you shouldn't be using your users devices as game servers...
How about when a tab is backgrounded, a server continues running the game and just streams an mp3 audio stream to the users device. Most devices can stream audio with the CPU actually turned off.
- XCSme 6y agoThe devices are used as game clients, not game servers. Streaming audio sounds like an interesting idea, so instead of the server sending an event and the client playing a sound when that event is received, the client would constantly stream a dynamically created audio file. This solution could work, feels a bit complex as you would still have to make sure stream catches up if user has a lag spike, instead of buffering the audio (timing should still be accurate). That being said, what it the game is single-player and there is no server? Then the client itself would have to generate the audio stream and stream it to itself, which wouldn't work if the background thread is throttled.