feat: pace frames to the interval set with SetFrameIntervalX #3
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Freminet--ScarlettX!3
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/3/head"
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?
@AutoComput on GitHub · 2026-11-21 10:05 UTC · original
AutoComput:feat/frame-interval-pacing→main· +128 −5 · 7 files · 1 commits · merged 2026-11-22 10:38 UTCTL;DR
--uncappedturns that off.WaitFrameEventXreturns straight away, so the title runs uncapped. It now waits for the next frame origin, oneSetFrameIntervalXinterval after the last. I treated the period argument as latency rather than a rate divisor, so the observed(16667, 2)means 60 fps. Worth a second look if you know otherwise.It uses a high resolution waitable timer, not vsync.
--uncappedturns it off for benchmarking.ScheduleFrameEventXis unchanged.New test
test_d3d12_frame_pacingcalls the two slots on the device proxy: 12 frames take 200 ms. I don't have the title, so this is untested in a real game. It assumes the title callsWaitFrameEventXonce per frame. The milestone notes ingenerate_status.pystill say uncapped, I left those for you.