Skip to content

Netfox does not seem to be able to recover from a clock desync #332

@Riordan-DC

Description

@Riordan-DC

✨ Description

I noticed that if I unfocus my client game window (on another computer) the time becomes out of sync. Thats ok, but netfox cant resync. It seems the time synchroniser can never fully catch back up once the time desync is outside of the history window. What appears to happen is the player sends out of date inputs (which the server ignores) and the server sends back new frames that the client cant rollback to because the history window is not large enough.

I propose a feature that is a reset which occurs when this happens. Netfox can already detect the issue, then it needs to ignore rollback and just resync the clocks, and restart history.

Use case

When would this feature be used? How is it useful to the user?

This makes netfox more robust for all multiplayer games. This issue is essentially a crash since the multiplayer system cannot work in this state.

Distribution

Where would this feature live?

  • I think the resync could be automatically done inside the TimeSynchroniser. It could perhaps trigger a signal which the roll back nodes listen for and clear their histories. Or perhaps the rollback nodes could notify the TimeSynchroniser.

Notes

I am new to the concept of rollback and perhaps I dont understand how this is meant to be solved. Happy to be corrected on this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions