Skip to content

Fix OnIdleTimer::GetSecondsPerFrame returning wrong units#124

Open
CodeReclaimers wants to merge 1 commit intodavideberly:masterfrom
CodeReclaimers:fix/onidletimer-seconds-per-frame
Open

Fix OnIdleTimer::GetSecondsPerFrame returning wrong units#124
CodeReclaimers wants to merge 1 commit intodavideberly:masterfrom
CodeReclaimers:fix/onidletimer-seconds-per-frame

Conversation

@CodeReclaimers
Copy link
Contributor

GetSecondsPerFrame divides milliseconds by frames then multiplies by 1000, giving a result 1,000,000x too large. Fix: divide by (1000 * frames) instead.

Test: tests/issue_16_1_onidletimer/

🤖 Generated with Claude Code

Formula was `1000.0 * numMilliseconds / numFrames` instead of
`numMilliseconds / (1000.0 * numFrames)`.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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