[whatwg] Proposal: requestBackgroundProcessing()

James Robinson jamesr at google.com
Thu Feb 20 09:56:30 PST 2014


On Thu, Feb 20, 2014 at 7:25 AM, Ashley Gullen <ashley at scirra.com> wrote:

> The host is effectively acting as the
> game server, and this basically hangs the server. If there were 20 peers
> connected to the host, the game hangs for all 20 players.
>

That's a bug in your application design.  If one web page is performing
operations necessary for things orthogonal to that page's visual display,
those operations should not be tied to a requestAnimationFrame loop.  If
the host is responding to network updates from other clients, for instance,
then it could perform that work in response to the network events coming
in.  The page may also be performing the normal game updates for that one
client in a rAF loop concurrently.

- James



More information about the whatwg mailing list