Archive 17/01/2023.

Networking using full state snapshots

Enhex

Currently Urho’s scene replication sends individual updates at the node level.

This doesn’t combine well with running prediction on the client since the prediction can’t start from the same state the server had.

Adding an option to the network system to send updates in complete snapshots, and sending an event when a snapshot is received would solve that problem.

In case anyone needs a quick & dirty solution I implemented something simple that achieves that:

It doesn’t have any optimizations like delta updates, so it’s still desirable to provide this feature in Urho.

George1

The way game server do that is sending a time to client or client sending time to server in it’s packet. This prevent speed hacking etc.

Enhex

Do what?

Sending timestamp won’t help with prediction.