Skip to content

GPU: reuse dirty descriptor set allocations between heap passes - #1373

Open
spk-c wants to merge 1 commit into
fxceless:mainfrom
spk-c:submit/dirty-descriptor-reuse
Open

spk-c wants to merge 1 commit into
fxceless:mainfrom
spk-c:submit/dirty-descriptor-reuse

Conversation

@spk-c

@spk-c spk-c commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Change

Drain the existing dirty buffer-descriptor HashSet under the same mutex rather than replacing it with a new set every pass. Retains the allocation; writes after the drain still belong to the next pass. Does not change descriptor ordering guarantees or the scan cadence. This is a minimal alternative to the more extensive bitset approach in #1190.

Verification

Direct base 52ac4ec. Clean isolated workspace all-target/all-feature cargo check and Clippy -D warnings passed. New dirty_descriptor_drain_retains_capacity regression executed on a host heap with WARP requested: all entries drained, second drain empty, capacity retained, subsequent write observed. Staged asset policy and diff checks passed. No frame-rate claim; full upstream policy still has the source-size issue covered by #1357. CI/review pending.

AI-assisted, extracted from fork a34963d; no title assets.

AI-assisted extraction of a34963d, with capacity and repeated-drain regression.
@spk-c
spk-c marked this pull request as ready for review November 26, 2026 19:25
grosterr added a commit to grosterr/victory-fork that referenced this pull request Nov 26, 2026
…eap passes)

Co-Authored-By: Antigravity <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant