TacticalMetaphysics / LiSE

Rules-based engine for life sims, with time travel
GNU Affero General Public License v3.0
116 stars 9 forks source link

Unload #80

Closed clayote closed 3 years ago

clayote commented 3 years ago

This introduces the method Engine.unload() which will cause LiSE to get rid of any cached state it can. In a long-running game, you can use this just after Engine.snap_keyframe() to get all the game's history out of RAM.

There is also a significant speedup that's a result of removing the engine's overeager serialization of the state of the randomizer.

clayote commented 3 years ago

Oh, and LiSE will automatically load things when it needs them.