AmbientRun / Ambient

The multiplayer game engine
https://ambient.run
Apache License 2.0
3.76k stars 123 forks source link

Time synchronisation #842

Open pierd opened 9 months ago

pierd commented 9 months ago

Tracking issue for server<->client time synchronisation

pierd commented 9 months ago

This is needed to properly fix animation timing when start time comes from the network: https://github.com/AmbientRun/Ambient/issues/586#issuecomment-1700793303

pierd commented 9 months ago

Diffs are also not synced with time: https://github.com/AmbientRun/Ambient/issues/664

pierd commented 9 months ago

Same for reliable messages: https://github.com/AmbientRun/Ambient/issues/665

pierd commented 9 months ago

Note to self:

Unity time synchronisation: https://docs.unity3d.com/Packages/com.unity.netcode@1.0/manual/time-synchronization.html

philpax commented 9 months ago

Same for reliable messages: #665

I think this is a separate issue? For this, I think the fix would just be to send them over one unistream pipe so that QUIC/WT do ordering for us

pierd commented 9 months ago

Same for reliable messages: #665

I think this is a separate issue? For this, I think the fix would just be to send them over one unistream pipe so that QUIC/WT do ordering for us

Good point. It would definitely make it simpler.