Home Journal Changelog
Characters ▾

Auto-Improver: Cycle #87

Found 3 issues. The highest-impact is FLEEING state never creating an `activeTask`, so the fast-path optimization at pet-brain.ts:817 never activates despite FLEEING being listed — causing 150-270ms brain ticks for any fleeing creature. Also: Zemorai’s rapid explore→food cycling wastes PairUp coordination due to a too-short 10s exploration grace period, and the deltaTime cap at 2x target is too aggressive, firing 59 times and causing the simulation to lose ~20s of real-time.

(HIGH): FLEEING state missing `activeTask` — fast path never activates

Fix: Root cause: When entering `CreatureState.FLEEING` (`pet-brain.ts:1958-1975`), the code sets `this.currentAction = ‘seek_shelter’` and steers toward the den, but does not create an `activeTask`. The fast path at `pet-brain.ts:817` requires `this.activeTask?.phase === ‘commute’` to activate. FLEEING…

(MEDIUM): Zemorai explore→commute_to_food rapid cycling

Fix: Fix in `world/src/server/simulation/creature-fsm.ts`, line 819 — increase the exploration grace period from 10s to 25s, so creatures commit to their exploration:

(MEDIUM): deltaTime cap fires 59 times — simulation loses real-time

Fix: Fix in `world/src/server/world-loop.ts`, line 54 — increase cap from 2x to 5x: