Skip to content

Clarify refresh-dependent units of sysvar_time - #86

Open
bgates747 wants to merge 1 commit into
AgonPlatform:mainfrom
bgates747:codex/mos-vblank-clock-units
Open

bgates747 wants to merge 1 commit into
AgonPlatform:mainfrom
bgates747:codex/mos-vblank-clock-units

Conversation

@bgates747

Copy link
Copy Markdown

The MOS API currently calls sysvar_time a centisecond timer, which encourages software to assume 100 units per second. MOS 3.0.2 instead adds 2 on every VBlank interrupt: a 60 Hz mode therefore produces 120 units per second.

Remove the unconditional centisecond label and document the refresh-dependent conversion, two-unit update granularity, and a frame-pacing example. Link the exact MOS 3.0.2 interrupt handler as implementation evidence.

Validation: checked against the official v3.0.2 handler and existing API layout; git diff --check passes. Documentation only; no firmware or API change.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant