Not seeing any network requests so I can't imagine why it would be so laggy.
Not seeing any network requests so I can't imagine why it would be so laggy.
All user state is stored on the server. Behind the scenes, events are sent as API calls to update the state on the server. The state delta is then sent to the frontend, which updates the UI to reflect the new state.
1. Looks like you posted this comment pretty close to when this was posted on HN. It's possible the server was more loaded, as I tried it myself and it wasn't very laggy (though there was a delay, it wasn't nearly the one second you experienced).
2. I copied the example code and ran it locally, and the latency is no worse than, say, an electron app. Better than most of them, to be honest.
Likely this was related to server load or network latency or both, because the core functionality seems pretty lag-free.
(very interesting project nonetheless!)
We’re working to offload more logic to the client in the for purely UI operations like you mention, and in the future want to leverage wasm once it’s more mature.