GPU: count a frame when the swap chain accepts the present #1151
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1154"
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 fxceless/victory-fork. Originally posted by UwUCammie on 2026-11-25T21:52:19Z.
The FPS counter advances even when the swap chain returns a failure or an occlusion status. The caller also receives a result indicating that the frame was shown.
Count a frame only when
PresentreturnsS_OK. A transition to occlusion produces one warning. The first failing HRESULT still goes through the error diagnostic added inb9011c9, with the original frame number. The regression feeds the meter two successes separated by an occlusion and a repeated error. Only the two successes reach the counter.Cross-built the Windows GPU tests and ran the original host tests under Wine 11.22 on an RX 7900 XT with RADV 26.3.1 (38 passed, one ignored). The meter regression also passed after merging
dc4c0fc.View 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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.