abhishekvp / cesium-lg

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

idea: camera pose heartbeat from nodejs relayer every 1 second #31

Open alfski opened 8 years ago

alfski commented 8 years ago

Hi, sending the current camera pose as heartbeat every second would be useful. Particularly when Slave Cesiums restart and we want them to quickly re-sync to the current camera pose... they may restart when there are no camera updates happening.

I'm not sure whether to do this from the Cesium Master or from the server.js relay.

If the camera pose comes from Google Earth viewsync then it makes more sense for the nodejs relay to send the heartbeat.

Heartbeart time should be a CONFIG setting

CONFIG.cameraSyncHeartBeat = 1000; // (in milliseconds)