Keep the compute wait budget on the newest frame #1831
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1831"
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Ondra97 on 2026-11-29T00:36:48Z.
Related to #628 and the compute wait budget added in
88244e8.What it changes
The current frame's compute wait accounting lives in a single slot. A late completion or check tagged with an older frame could move that slot backwards, discarding the budget already spent in the newer frame. Advance the slot only for a newer frame. An older dispatch uses the normal wait path and an older completion leaves the active slot alone.
This preserves the configured threshold. A synchronous pipeline creation already in progress can still run past the remaining budget.
How it was tested
Checked for overlap
88244e8. #901 handles held queue work. This change preserves the current main implementation and fixes frame ordering in its accounting.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by nick0451 on 2026-11-29T03:54:17Z.
Checked against the #628 symptom: this PR merged onto main
568c5e5, RTX 3090, Windows 11, 3 of 3 fresh first starts reached the world (a new executable name and file hash each time, the same frozen save). As on main, each start logged the cap taking over (compute pipelines: this frame waited its most for them). There was no crash, and the in-game frame rate is unchanged.🤖 Generated with Claude Code