Repository navigation
GPU: share indirect argument scratch after completed lists reset - #3298
Closed
Heldenkrieger01 wants to merge 1 commit into
Closed
Heldenkrieger01 wants to merge 1 commit into
Heldenkrieger01 wants to merge 1 commit into
Conversation
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.
Each live command list kept its largest indirect-argument scratch allocation across resets. Lists that take turns can now reuse the same device-local allocation through the existing UAV pool. The handoff happens after execution finishes and only for poolable buffers whose close path restores COMMON.
On a 10 GiB RTX 3080, 16 live host lists each requested 8 MiB in turn, then closed, executed and reset. Main used 16 distinct buffers and added 129 MiB of DXGI local usage. This branch used one buffer and added 9 MiB. Three fresh processes per build gave the same results. The existing D3D12 lifecycle test passed with the new reset-time reuse assertion.
In-game A/B on a 10 GiB RTX 3080
The opening scene saved 54.35 MiB of device-local indirect scratch with indirect batching disabled. A local instrumented build toggled only this change for the unbatched comparison. It counted capacity held by live command lists and included all idle buffers in the shared UAV pool. By the end of the window the patch had returned a scratch buffer on 56,429 list resets.
The 150 MiB difference in whole-process usage includes other allocations and run-to-run variation. The directly measured saving is 54.35 MiB. This pair used
VICTORY_INDIRECT_BATCH=0on both sides.With the launcher's default
VICTORY_INDIRECT_BATCH=2, instrumented baseline and patched runs both recorded zero allocations through the changed path. Two ordinary PR runs at the higher draw count measured 10.99 and 11.10 FPS and 8,114 and 8,069 MiB of process-local VRAM. The comparable baseline measured 11.67 FPS and 8,169 MiB. The allocator counters give no basis for attributing those default-setting differences to this PR.All runs started a single fresh game process from the same copied save on a 10 GiB RTX 3080. The Series S profile used the 720p scene setting, DLSS Quality, and frame generation off. The 45-second measurement window started 80 seconds after the first world interval with at least 500 draws/frame. FPS uses title presents, and local VRAM is the process's DXGI local-segment usage. Every build used the same diagnostics compilation fixes from #3086.
Created with GPT-6.2-Astra in the Codex harness.