3 ms·
I'm Tyler (guy in the video). We do not currently do lag compensation/client-side prediction for you, but you can do it. In BitCraft we implement it outside of
by cloutiertyler 2y ago
I'm Tyler (guy in the video). We do not currently do lag compensation/client-side prediction for you, but you can do it. In BitCraft we implement it outside of SpacetimeDB.
However, we DO plan to add automatic client-side prediction as a feature for SpacetimeDB in the near-ish future! Because all your server-side logic is in Wasm modules, we plan to run an embedded version of SpacetimeDB to execute the server logic on the client. As long as the server and client agree on the changes to the data we can reconcile the transactions, otherwise we'll rollback. Notably, we can do this with only partial state on the client!