Re:Synchronize a 3D scene across multiple windows using Thre...
by supermatt on Monday November 27, 2023 @06:29PM
(#38440064)
Is there some reason to prefer localStorage over https://developer.mozilla.org/en-US/docs/Web/API/Broadcast_C... ?
[ Parent
| on HN ]
Re:Synchronize a 3D scene across multiple windows using Thre...
by brunohaid on Monday November 27, 2023 @07:26PM
(#38440614)
Broadcast is messaging only, localStorage can elegantly handle messaging and state data.
Re:Synchronize a 3D scene across multiple windows using Thre...
by supermatt on Tuesday November 28, 2023 @04:25AM
(#38443991)
Broadcast gives access to structuredClone and transferable objects. i.e. much reduced latency, which I would have thought desirable for this specific use-case (synchronising a 3d scene)