3 ms·
I did something making a game. The game logic runs server side however in order to hide latency the clients also run a WASM copy locally. Then once the server p
by kevincox 6y ago
I did something making a game. The game logic runs server side however in order to hide latency the clients also run a WASM copy locally. Then once the server processes their moves they check that everything was in-sync and if not reload with the server state.
(In practice the validation is probably not necessary but doesn't hurt to have).