Repository navigation
Conversation
The parallel path adds each worker's duration to the shared texture counter and later subtracts the difference from elapsed time. The present thread can drain that counter between the read and the subtraction, wrapping the unsigned counter and corrupting the frame timings. Other batches can also contribute to that difference. Count the bytes read by each worker and add the wall-clock duration once when the batch finishes. This keeps timing additive across present intervals without changing refresh ordering or the sequential path. Based-on: fxceless#768 Tested-on: Fedora Linux 45, Wine 11.0 (Windows cross-build and four focused batch tests) Assisted-by: gpt-6.2 sol xhigh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The parallel texture refresh path introduced in fxceless#768 adds each worker's time to the shared frame counter and later subtracts the difference from wall time. A frame report can reset the counter between the read and subtraction, leaving a wrapped value in the next sample.
Count bytes as each worker finishes. Add the batch's wall-clock duration once after all its workers finish.
Tested-on: Fedora Linux 45, Wine 11.0 (MSVC cross-build of this branch and four focused batch tests)
Assisted-by: gpt-6.2 sol xhigh