Skip to content

Simulating Rollbacks Locally #210

Closed Answered by elementbound
jeremyhcho asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @jeremyhcho! Rollback will happen, as long as there's active RollbackSynchronizers and latency between server and clients. The higher the latency, the older the input received on the server, and the more ticks it needs to resimulate. Similarly on clients - the higher the latency, the older the last received state, so more ticks need to be resimulated.

For local testing on Linux, there's a script included that you can use to simulate latency artifically. For Windows, I know there's clumsy, although I haven't used it myself.

You can check the number of rollback ticks simulated in Godot's profiler:

Out of curiosity, what are the alternatives you're checking? I only know of Snopek's rollb…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jeremyhcho
Comment options

Answer selected by jeremyhcho
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants