|
|
|
|
|
by softfalcon
1477 days ago
|
|
I’ve written a diffing algorithm using UDP. You tell it to diff against a previous packet with an id. Every so often you send a full key frame packet so they always stay in sync and have full game state. It works really well and cut my network traffic down by a whole couple orders of magnitude. The trick is to figure out update grouping so you can create clean groups of things to send and diff on. Ultimately delta compression doesn’t even care what the data is, so modern net stacks do some really efficient compression in this way. |
|
Right. That's how video streams work, too. Every once in a while there's a complete frame, but most frames are diffs.