Multiplayer (If Host is minimized...)

Post » Sat Sep 09, 2017 3:22 am

I'm extremely curious - using the Multiplayer plugin, how is it that the host is able update player positions, check collisions, etc.. while their browser is minimized? Doesn't JS slow down to a halt...?
B
6
Posts: 3
Reputation: 256

Post » Sun Sep 10, 2017 11:34 am

Background throttling is quite complex - normally background web pages are suspended, but there are exceptions, which include if the tab is playing audio, and IIRC as of recent Chrome versions WebRTC connections count as an exception too.
Scirra Founder
B
400
S
237
G
89
Posts: 24,549
Reputation: 195,525

Post » Mon Sep 18, 2017 4:26 am

Ashley wrote:Background throttling is quite complex - normally background web pages are suspended, but there are exceptions, which include if the tab is playing audio, and IIRC as of recent Chrome versions WebRTC connections count as an exception too.


This is pretty interesting. @Ashley is it possible to run the Multiplayer server plugin in Chrome headless mode, to save on CPU/Memory usage?
B
84
S
27
G
9
Posts: 89
Reputation: 9,613


Return to General Discussion

Who is online

Users browsing this forum: rhg1968 and 1 guest