Repository navigation
Textures: fit streamed mip levels into the fullest suitable tile heap - #3299
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.
A small mip level could use space in the first tile heap even when it fit exactly in another. This could force a new 64 MiB allocation for the next larger mip. The allocator now chooses the fullest heap that fits the request and keeps the free tile count alongside its ranges.
On a 10 GiB RTX 3080, the same sequence left 640 tiles available in one heap and 192 in another, then requested 192 and 640 tiles. Main allocated three heaps and added 192 MiB of DXGI local usage. This branch allocated two and added 128 MiB. Three fresh processes per build gave the same result. Savings depend on allocation order and apply when streamed levels use the tiled path.
The levels-on-demand regression exercised packing, tile reuse, copies and shader sampling on both WARP and the RTX 3080 with the D3D12 debug layer enabled. Both passed.
In-game A/B on a 10 GiB RTX 3080
The opening scene showed no repeatable tile-heap saving. Both patched runs held 256 MiB of tile heaps. The two baseline runs held 256 and 192 MiB. The change in whole-process local usage changed sign when run order was reversed.
Serial runs from the same copied save used the Series S 720p scene profile, DLSS Quality, frame generation off, and
VICTORY_LEVELS_ON_DEMAND=1on both sides. The launcher normally disables tiled levels. Each run used the 45-second window starting 80 seconds after the first world interval with at least 500 draws/frame. FPS uses the mean logged interval between title presents. VRAM is the game's DXGI local-segment usage. All builds used the same diagnostics compilation fixes from #3086. Results cover this scene and adapter.Created with GPT-6.2-Astra in the Codex harness.