Alrecenk / JSTimelineSync

A quick and dirty prototype for testing generalized rollback networking.
MIT License
5 stars 1 forks source link

Possible desync if two events have exactly the same time #16

Open Alrecenk opened 2 years ago

Alrecenk commented 2 years ago

Currently, the placement in the timeline for identical times depends on which is added first which could be different between clients. If the two events read and write to the same object at the same time it could cause divergent behavior between client.s Need to either disallow this completely, or find a way to deterministically pick which event happens first. Tie breaking by hash is probably fine.

Alrecenk commented 2 years ago

This isn't high priority because I've never seen it happen. It is something I imagine could theoretically happen.