philazzi44 / DnDCS

DnD Client-Server
3 stars 1 forks source link

Web Workers #19

Open philazzi44 opened 10 years ago

philazzi44 commented 10 years ago

Web Workers allow sharing ArrayBuffers (and maybe other data) in a way that basically moves the object into the other context (cannot share the object amongst two in the normal threading way.) This might be useful for when we have to draw the map bytes to a Map Image, or the Fog - anything else, it's probably not worth the extra complexity.

See : http://www.html5rocks.com/en/tutorials/workers/basics

philazzi44 commented 10 years ago

Checked out Transferable Objects - seems promising, if we need the performance boost. The incoming socket data has no way to be offloaded, so if we have any post-receiving processing to do before using it, that would be viable to offload.