Adaptive 16/8 MiB texture pool, block-aware idle eviction, and pop-in priority #1562
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!1562
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@mikael-jarvinen on GitHub · 2026-11-28 21:45 UTC · original
mikael-jarvinen:pr-adaptive-texture-pool-and-popin→main· +769 −171 · 6 files · 2 commits · openRebased 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 targets@crashoverride1995 on GitHub · 2026-11-29 00:14 UTC · original
Still iterating, claude messed up lol
github-bot referenced this pull request2026-11-29 03:44:35 +00:00
36321ad0a6to8b4b42b708@Saturcolor on GitHub · 2026-11-29 13:44 UTC · original
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
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.