Skip to content

Docs: where stock's delay routine runs, and why its time delays the next frame - #1977

Merged
repeat98 merged 1 commit into
mainfrom
docs/delay-routine-ipl
Nov 22, 2026
Merged

repeat98 merged 1 commit into
mainfrom
docs/delay-routine-ipl

Conversation

@repeat98

Copy link
Copy Markdown
Owner
  • What was wrong or hard: docs/MODULE_PERFORMANCE.md says effect work in stock's delay routine is never dropped by the frame guard, but not where that routine runs or what its time does to the next frame. Working out Tape Echo's overload behaviour (Tape Echo 0.1.8-experimental: cheaper on the ColdFire, bounded under overload #1976) needed the eDMA interrupt's code: it lowers the mask to IPL 5 around the routine (0x40004b0e), and the chain's last state unmasks the frame interrupt (0x40004bc2), so time spent there carries into the next frame.
  • What this changes: two sentences in "The frame share, not the meter, is where renders drop": where the routine runs, why its time delays the next frame, and that stock's free-running DTIM3 count lets code there see a late call without the base.
  • How I checked it: read against the stock 1.40C disassembly (0x40004adc..0x40004bd0, 0x4000aad0 entry, 0x400209c2 DTIM3 setup); npm run pr:ready.
  • Tested on a unit: Not tested on a unit: documentation only.
  • Edge cases: none, because only documentation changes.
  • What the guides lacked or got wrong, and where I fixed it: this is the fix: docs/MODULE_PERFORMANCE.md.

🤖 Generated with Claude Code

…ext frame

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Nov 22, 2026
@repeat98
repeat98 merged commit 9528223 into main Nov 22, 2026
11 checks passed
@repeat98
repeat98 deleted the docs/delay-routine-ipl branch November 25, 2026 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant