Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snapshot system #29

Closed
arthuro555 opened this issue Nov 24, 2022 · 0 comments
Closed

Snapshot system #29

arthuro555 opened this issue Nov 24, 2022 · 0 comments
Assignees
Labels
📈 Improvement Further work to make an existing feature even better
Milestone

Comments

@arthuro555
Copy link
Owner

Snapshots is a system that keeps the diff data from the last few frames in memory. This allows to resend data that a client missed due to UDP packet loss.

Having a snapshot of the latest frame also allows to serialize the game state differently for each player. FlatBuffers being immutable, we need to keep that data stored for multiple reserialisation with player-spcific data, like the Player state variable.

Necessary for #5 and #20

@arthuro555 arthuro555 self-assigned this Nov 24, 2022
@arthuro555 arthuro555 added this to the THNK Beta milestone Nov 24, 2022
@arthuro555 arthuro555 added the 📈 Improvement Further work to make an existing feature even better label Nov 24, 2022
arthuro555 added a commit that referenced this issue Nov 25, 2022
This internal change shouldn't change anything but unblock progress on many other features, like different diffs per player, UDP packet loss compensation, etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📈 Improvement Further work to make an existing feature even better
Projects
Status: Done
Development

No branches or pull requests

1 participant