abhishekvp / cesium-lg

Liquid Galaxy GSoC 2016 Project: Enabling Cesium for Liquid Galaxy
5 stars 3 forks source link

server.js: send & receive protobuf message as UDP broadcast #30

Open alfski opened 8 years ago

alfski commented 8 years ago

I'd like to use UDP broadcast between the Master server.js and Slave(s) server.js.

Actually the 'server.js' will be more like 'bridge.js' :)

Master Cesium > [websocket] > node server.js > [udp broadcast] > slaves node server.js > [websocket] > Slave Cesium

This is becasue the camera pose updates are time critical, and sending them as TCP websocket in a loop one at a time is introducing jitter. We can eliminate that jitter by sending a SINGLE UDP broadcast from the Master which will be picked up by the slaves.

This is going to need to be on a different port to Google Earth.