GPU: two frame waits that pick the same tick no longer both end on it #325
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/fxceless--victory-fork!325
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-325"
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?
@RenzoWit35 on GitHub · 2026-11-24 23:34 UTC · original
RenzoWit35:fix/244-flip-wait-claims-its-tick→main· +110 −23 · 1 files · 1 commits · openFixes #244.
A wait chose its tick before sleeping and then advanced
LASTwithfetch_max, ignoring theprevious value, so two concurrent waits (two FLIP waits, or both on the late path) could both
return
S_OKon one tick. The wait (now inclaim()) ends only if itsfetch_maxmovedLASTpast the previous value. Otherwise it waits for the next tick against the original deadline,
so a retry never lengthens the caller's time-out.
Tests: two concurrent waits end on different ticks (three rounds); three waits aligned on a
tick, with 150 ms time-outs and 100 ms ticks, give exactly one
S_OKand two time-outs withinthe limit (on
mainall three ended on the same tick). The frame tests share the global clock,so they now take a test lock.
Note for review: the existing
waits_end_on_ticks_and_count_framesrelies on sleeps landingwithin a 5 ms tick; on a heavily loaded machine it can fail on
maintoo.Testing
On Windows 11, MSVC Rust 1.98.1, branch alone on top of
main(2119b0e):cargo clippy --workspace --all-targets --locked -- -D warnings, the same with--all-features, andcargo test --workspace --lockedall pass. The new regression test fails onmainand passes here. All nine fix branches for #242-#250 also pass together when merged.🤖 Generated with Claude Code
@kaayzouee on GitHub · 2026-11-25 01:16 UTC · original
Duplicate of #281?
b8d64263e2to8193c58d8bView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.