Skip to content
This repository has been archived by the owner on Oct 22, 2023. It is now read-only.

Change-rollback working

Pre-release
Pre-release
Compare
Choose a tag to compare
@proepkes proepkes released this 04 Feb 22:14
· 35 commits to master since this release
0eccbe6

Days of debugging finally paid of. This release adds full rollback functionality for changes that happened during prediction when input arrives from the past. (Lesson learned: if components were added, they have to be removed when rolling back. Sounds trivial, I know!). The debugging left a little mess behind, so the next updates will be refactorings/cleanup.

Another good thing: A new feature for debugging was added. It is possible to dump the whole gamestate. A full dump consists of a few smaller dumps:

  • All active game-entities
  • All input-entities
  • A serialized log that lets you replicate a whole game with input simulation as it was ingame, see the dump-tests for an example.