fix(saves): animate item icons at the measured 134 ms game tick #407
No reviewers
Labels
No labels
area/ci-release
area/cli
area/docs
area/dungeon
area/ftl
area/graphics
area/gui
area/music
area/saves
area/tooling
port/amiga
port/dos
port/fm-towns
port/mac
port/pc98
port/sega-cd
priority/high
priority/low
priority/medium
type/bug
type/chore
type/docs
type/feature
type/research
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jqueuniet/dm2-tools!407
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/game-tick-134"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
dm2_graphics::GAME_TICK_MS= 134, the shared value.dm2_saves::TICK_MSkeeps its name and type and now derives from it.docs/cli-save-editing.mdnow quote@134ms.Once #406 merges,
dm2-magicmap'sTICK_MS(134 there too) will move to the shared constant in a small follow-up.https://claude.ai/code/session_01WCNjYNkYSAapvFewz9wfkw