Repository navigation
Conversation
Merge overlapping changes before looking up placed views. If the whole pending buffer is disjoint, fold neighboring intervals to preserve coverage within the existing cap.
Merging just one overlap at capacity meant a producer could sort the entire queue again for each following notification. Free one eighth of the queue when exact coalescing leaves less room, joining only enough pairs to reach that target.
soldsawn
added a commit
to soldsawn/victory-nvidia-8gb
that referenced
this pull request
Nov 25, 2026
e4glevlr
added a commit
to e4glevlr/victory-fork
that referenced
this pull request
Nov 25, 2026
fxceless#917, fxceless#823 xmem) - fxceless#916: only mark title memory as written for SLOT_MEMORY shaders that can store by address - fxceless#896: coalesce pending texture change ranges instead of clearing at 32k capacity - fxceless#956: add opt-in VICTORY_HEAP_RECHECK_EVERY and VICTORY_HEAP_RECHECK_WHOLE_MB (default off) - fxceless#917: add opt-in VICTORY_AMBIENT stand-in for CS_ScreenProbes_TemporalResolve (default off) - fxceless#823 (HLE): coalesce map_alias contiguous runs into single section views
akus-elinius
pushed a commit
to akus-elinius/victory-fork
that referenced
this pull request
Nov 25, 2026
…#896) PR: fxceless#896 Head: b1c3be1 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
I re-ran the burst case on current main Updated source-only review branch at Assisted by Codex (GPT-6.2-Sol High). |
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.
Problem
A bindless texture that has finished uploading relies on mapping and storage-write notifications to become due again. When either notification buffer reached 32,768 entries, the next nonadjacent notification cleared every earlier entry. A texture could keep its old upload even after the layer had recorded a change to its memory.
Change
Merge touching and overlapping ranges before looking up affected slots. When the buffer fills, reclaim at least 4,096 entries before appending the next notification. If merging overlaps is insufficient, join just enough neighboring pairs to make room. This preserves coverage and avoids repeatedly sorting the full buffer under the producer lock when merging overlaps would free only one or two entries. The texture pass may check additional slots in those gaps. Diagnostics count the gaps joined at capacity.
Verification
0b0074e. The original code loses the earliest notification. With the patch, the already-uploaded slot becomes due again through both the remap and completed-write paths. The tests also check coverage across 65,536 disjoint changes and verify that a nearly disjoint queue leaves room after compaction. All 22 descriptor tests passed. Windows comparisonIssue #821 shows why a completed-write notification can matter to an already-uploaded texture. #606 handles a remap of a staged texture, and #221 and #733 optimize the later selection of due uploads. This PR covers the earlier loss of notifications at capacity. The frequency of that overflow in gameplay and the effect on frames remain unmeasured.
AI-assisted with Codex. All test and benchmark inputs were synthetic.