3 ms·
Generally client games optimistically carry on a few frames (and sometimes much more!) ahead of the what the server has responded with as accepted. This is bec
by andyferris 1y ago
Generally client games optimistically carry on a few frames (and sometimes much more!) ahead of the what the server has responded with as accepted.
This is because gamers require low latency to effectively play, but things can be slightly out of sync and logic can be complex, and anti cheat can be hard to implement server side only (which is why eg fortnite and valarant install fancy client side anti cheat software too).
For a friendly game of stardew valley or turn based strategy you can afford to wait for transactions to complete and causality to be enforced.
- kaliqt 1y agoWe CAN submit the change to the DB and not listen to the message on if it succeeded or not! The message will arrive eventually, it's just not necessary to await it, so you have options.