spookybear0 / laserforce_ranking

Ranking and matchmaking of laser tag players
https://laserforce.spoo.uk
MIT License
4 stars 2 forks source link

Add a snapshot in replay for the state at every minute #82

Open EboMike opened 6 months ago

EboMike commented 6 months ago

Scrolling back to a position late toward the game requires the JS runtime to re-evaluate the entire game from the beginning until that time, which can take several seconds.

In order to speed things up, the game should create a snapshot of the current game state at every minute and use that as a starting point when the timestamp changes so it never needs to evaluate more than 60 seconds worth of events at a time.