Adaptive 16/8 MiB texture pool, block-aware idle eviction, and pop-in priority #1562
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1562"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by mikael-jarvinen on 2026-11-28T21:45:12Z.
Rebased replacement for #1168 onto
main(923e38c), preserving upstream'sVICTORY_POOL_SMALL=0default, unlockedtake_fromheap creation (#816),UPLOADS/SHAREDbuffer pools (#991),KEY/is_pooled(#999), and denseTextureQueuelayout.Summary of Changes
pool.rs): splits small (<= 256 KiB) and large textures into separate pools with 16/8 MiB blocks on<= 12 GiBVRAM cards, best-fitRanges::take, fullest-non-empty-block-first placement, andVICTORY_POOL_GATEwithno_fitcaching so lightly-used blocks drain back to Windows.resource.rs): tracks each texture's encoded pool block (pool_block) for drain-a-block eviction, caps trapped pool-free credit during eviction so fragmented blocks still drain, and settlestargets_kept_from_peakto 0 after targets stabilize (preventing ~690 MB from staying permanently locked on DLSS / lower internal resolutions).descriptor/host.rs): splits periodic already-uploadedrecheckscans into a 3rd tier behindagainandfreshinsideDue::ordered()while keeping upstream'sO(N)select_nth_unstable_by_keyand 16-byte tuple layout.ahead.rs) & staging admission (texture/ahead.rs): scales pre-allocated card buffers on<= 12 GiBcards and gates speculative prefetch on general texture admission.Verification & Re-Measurement on
main(923e38c)pool+ 29/29resource::tests+ 59/59descriptor::host::testspass; 0 new warnings.diagbuild, warm cache, 1440p DLSS Performance, FG off, 115 s scripted run):main(923e38c, ~7,650 draws)bc6a02a, ~8,100 draws)Kept for render targetsImported from trustno1-coder/VIctory-NVIDIA. Originally posted by crashoverride1995 on 2026-11-29T00:14:39Z.
Still iterating, claude messed up lol
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Saturcolor on 2026-11-29T13:44:49Z.
Data point on a 12 GB card: RTX 3080 12 GB (budget 11.3 GB), Ryzen 7 5700X3D, Windows 11, driver 621.24.
#1562 (
8b4b42b7) on main829188e9, Series S, DLSS Quality, DLSS frame generation 2x, ray tracing off.Textures look clean, but the 16/8 MiB blocks this picks for <= 12 GiB budgets gave a hitch every ~2 s.
With VICTORY_TEXTURE_BLOCK_MB=64 (64/16 MiB), same save, same settings:
Maybe keep 64 MiB large blocks on 12 GB cards (16 MiB only below that)?
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.