GPU: count parallel refresh time once per batch #1132

Open
UwUCammie wants to merge 2 commits from upstream-pr/1135 into main
UwUCammie commented 2026-11-25 21:22:36 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by UwUCammie on 2026-11-25T21:22:36Z.


With parallel refresh enabled, workers added their individual times to the copy counter. After joining them, the submitter tried to subtract the overlap from a process-wide total. This misses time spent waiting for workers when their sum is shorter than the batch. A frame report can also reset the counter between the final load and subtraction, wrapping the next interval.

The submitter now adds the batch’s elapsed time once, after the workers finish. Copied bytes and the per-range diagnostic timings are still counted in each worker.

Cross-built the Windows x64 release against c36971b. All four frame-log tests and 22 tests matching host::tests passed under Wine 11.22 with diagnostics enabled. This changes timing reports only.

<!-- greyfinch-sync:fxceless/victory-fork:issue:6614018547 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1135). Originally posted by [UwUCammie](https://github.com/UwUCammie) on 2026-11-25T21:22:36Z. --- With parallel refresh enabled, workers added their individual times to the copy counter. After joining them, the submitter tried to subtract the overlap from a process-wide total. This misses time spent waiting for workers when their sum is shorter than the batch. A frame report can also reset the counter between the final load and subtraction, wrapping the next interval. The submitter now adds the batch’s elapsed time once, after the workers finish. Copied bytes and the per-range diagnostic timings are still counted in each worker. Cross-built the Windows x64 release against c36971b. All four frame-log tests and 22 tests matching `host::tests` passed under Wine 11.22 with diagnostics enabled. This changes timing reports only.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1135:upstream-pr/1135'
git switch 'upstream-pr/1135'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/1135'
git switch 'upstream-pr/1135'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1135'
git switch 'upstream-pr/1135'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1135'
git switch 'main'
git merge --squash 'upstream-pr/1135'
git switch 'main'
git merge --ff-only 'upstream-pr/1135'
git switch 'main'
git merge 'upstream-pr/1135'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
fxceless/victory-fork!1132
No description provided.