scenevr / server

:heart_eyes: Create multiuser 3d environments using html-like tags and javascript
http://www.scenevr.com/
BSD 3-Clause "New" or "Revised" License
144 stars 19 forks source link

Send deltas instead of full scene updates every network tick #17

Closed bnolan closed 9 years ago

bnolan commented 9 years ago

Currently we send the entire scene (all elements that have reflect: true) on every network tick. This is totally unneeded, we should keep track of changed elements on the document object, and only send elements that have changed. When a client connects, we need to send it the entire scene state. I think the client should just work with deltas, so this should require server code only.

bnolan commented 9 years ago

This is going to take a bit of work, probably not much harder than multiscene serving though, which took a few days.