fix(saves): animate item icons at the measured 134 ms game tick #407

Merged
jqueuniet merged 1 commit from fix/game-tick-134 into main 2026-10-29 21:22:11 +01:00
Owner

Animated item icons used 320 ms per frame, derived from SPX's own 100 Hz timer. The DOS EN game is faster.

Measurement: two saves written 608 s apart (file times 21:03:22 and 21:13:30) record game ticks 1883 and 6427. That's 4544 ticks, or 7.47 per second, so about 134 ms per tick. The engine counts 32 timer interrupts per tick, but the DOS timer rate is not in the SKWINSPX source.

Changes:

  • New dm2_graphics::GAME_TICK_MS = 134, the shared value.
  • dm2_saves::TICK_MS keeps its name and type and now derives from it.
  • The CLI doc examples, the wasm README and docs/cli-save-editing.md now quote @134ms.

Once #406 merges, dm2-magicmap's TICK_MS (134 there too) will move to the shared constant in a small follow-up.

https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw

Animated item icons used 320 ms per frame, derived from SPX's own 100 Hz timer. The DOS EN game is faster. **Measurement:** two saves written 608 s apart (file times 21:03:22 and 21:13:30) record game ticks 1883 and 6427. That's 4544 ticks, or 7.47 per second, so about 134 ms per tick. The engine counts 32 timer interrupts per tick, but the DOS timer rate is not in the SKWINSPX source. **Changes:** - New `dm2_graphics::GAME_TICK_MS` = 134, the shared value. - `dm2_saves::TICK_MS` keeps its name and type and now derives from it. - The CLI doc examples, the wasm README and `docs/cli-save-editing.md` now quote `@134ms`. Once #406 merges, `dm2-magicmap`'s `TICK_MS` (134 there too) will move to the shared constant in a small follow-up. https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw
fix(saves): animate item icons at the measured 134 ms game tick
Some checks failed
CI / msrv (1.90) (pull_request) Successful in 27s
CI / audit (pull_request) Successful in 18s
CI / stable (pull_request) Successful in 55s
CI / python bindings (3.11) (pull_request) Successful in 25s
CI / msrv (1.90) (push) Successful in 28s
CI / audit (push) Successful in 19s
CI / stable (push) Successful in 56s
CI / python bindings (3.11) (push) Has been cancelled
a6441331d3
Two DOS EN saves written 608 s apart record game ticks 4544 apart,
7.47 per second; the 320 ms value came from SPX's own 100 Hz timer.
The tick moves to dm2_graphics::GAME_TICK_MS so every crate shares it.

Claude-Session: https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw
jqueuniet deleted branch fix/game-tick-134 2026-10-29 21:22:11 +01:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jqueuniet/dm2-tools!407
No description provided.