event-queue timers + action log (fixes #36, #37) #38

Merged
claude merged 2 commits from feature/event-queue-and-action-log into master 2026-03-24 13:01:22 +00:00

2 Commits

Author SHA1 Message Date
20858a1be1 📝 update changelog for event-queue and action log 2026-03-24 08:08:18 +00:00
3b021127a4 replace polling timers with sorted event queues + action log
Crops, tree seedlings, and tile recovery no longer iterate all entries
every frame. Each event stores an absolute gameTime timestamp (growsAt).
A sorted priority queue is drained each tick — only due items are touched.

WorldState now tracks gameTime (ms); stateManager.advanceTime(delta)
increments it each frame. Save version bumped 5→6 with migration.

Action log ring buffer (15 entries) added to LocalAdapter; shown in
the F3 debug panel under "Last Actions".

Closes #36
Closes #37
2026-03-24 08:08:05 +00:00