microsoft / pxt-arcade

Arcade game editor based on Microsoft MakeCode
https://arcade.makecode.com
MIT License
478 stars 207 forks source link

Move simulator to the server #5393

Open eanders-ms opened 1 year ago

eanders-ms commented 1 year ago

In the current multiplayer model, the host runs the game simulation and sends screen updates to the other players. This design brings with it a number of performance problems. including a large potential for laggy experiences. In a future iteration, we want to simulate the game server-side, and send screens to all clients.

When we implement this, we should consider sending game updates via WebRTC. Encoding it this way will head off a number of problems, especially around the playing of music.

eanders-ms commented 1 year ago

This is required for #5113 (multi-camera)