naia-lib / naia

a cross-platform (including Wasm!) networking library built in Rust. Intended to make multiplayer game development dead-simple & lightning-fast
Apache License 2.0
857 stars 61 forks source link

Attempted to Tick Backwards using SequencedReliable #160

Closed Stumblinbear closed 1 year ago

Stumblinbear commented 1 year ago

Approximately every one in five or ten times connecting to a server that has already been started on latest causes the client to throw many "Attempted to Tick Backwards" warnings. If the server is newly started, this is instead replaced with what seems to be the client missing the first message sent each time, only receiving (what I assume to be) the re-sent message (has around a 1 second delay).

I'm unsure if this is partially related, but when disconnecting (just closing the window) the server emits quite a few RecvError errors, instead of removing the client. The client also doesn't appear to have spawned any entities from the server.

Note, this may be an issue I've caused myself, but I've checked for system order issues and haven't been able to track it down on my end. It pretty reliably happens "every few startups"

Stumblinbear commented 1 year ago

Changed to OrderedReliable and it still occurs

connorcarpenter commented 1 year ago

Fixed by https://github.com/naia-lib/naia/pull/162, thank you :pray: