Continuous VRAM growth with Hardware Ray Tracing (DXR) enabled #4315
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#4315
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@Eliauk0 on GitHub · 2026-11-30 18:47 UTC · original
VRAM usage increases continuously over time, far exceeding the expected budget.
It starts at around 10G/14.5G shortly after launching the game, and rises to 16.7G/14.5G after some time.
victory-nvidia-play-20261130-181545-21620.log
@tyr0nsur on GitHub · 2026-11-30 19:32 UTC · original
A likely part of the growth, read from your log and
hwrt.rsonmain(e1251c31):The BLAS memory itself stays inside its budget (
budget 1460 MB, live 1418 MBat the end, with 17,424 evicted). What keeps growing is the PC's memory shared with the card, 5.2 GB at 18:16:50 and 14.6 GB at 18:30:28, while the hardware RT line counts the decoded meshlet index buffers:In
HwRtManager::cached_meshlet_ibeach decoded index buffer becomes a committed UPLOAD buffer kept indecoded_ibs, aHashMapwith no bound. Onlytitle_memory_freedremoves entries, and nothing evicts them under pressure. A committed buffer takes a whole 64 KiB placement unit, but these hold about 18 KB on average (2606 MB / 148,196). So the cache can cost about 3.6x its decoded bytes in shared memory: up to about 9 GB if most of those 148k entries are still alive. The counters are cumulative, so the live share is not in the log. That figure is an upper bound, but it fits the shared-memory growth.Two changes would bound it: a byte budget with least-recently-used eviction that charges each entry its 64 KiB placement, or sub-allocating these small buffers from a few large upload heaps (placed resources) so each one costs its own size. A "live entries / MB" figure in the hardware RT line would show directly how much the cache holds.
AI-assisted with Claude Code.
@ishan-2025 on GitHub · 2026-11-30 20:38 UTC · original
RTX 5080 data point on
e1251c31(v2026.11.30.03, diagnostics build from source),VICTORY_HW_RT=1. My sessions are shorter than the one in the report (6–7 min against about 14), so this does not rule the growth out. It shows where memory stood in the first minutes.Setup: Ryzen 9 5950X, RTX 5080 16 GB (driver 616.56), 64 GB RAM, page file 48–64 GB. Series X, 2560x1440, DLSS Quality.
VICTORY_MAP_ONCE=1. Shader cache preloaded with the switch set (it is in the cache key).Memory, from the
memory now:andhardware RT:lines ("shared" is the PC's memory shared with the card):--fps 20 --framegen 2--fps 20 --framegen 2quant24 VB / meshlet IB … decoded). If they keep rising at that pace, they would account for part of a slow growth over a longer session.Other numbers from the same runs:
BLAS prepsummed to 44–47 s per run, andTLAS prepto 6–7 s.I can run a 20–30 min session with the same settings if a longer timeline of these lines would help.
AI-assisted (Claude Code); all numbers are read from my own logs.
@tyr0nsur on GitHub · 2026-11-30 23:08 UTC · original
Thanks for the matched RTX 5080 data. The original 5070 Ti run ends at about 16,864 MiB local against a 14,389 MiB budget and 14,565 MiB shared, with 1,418 MiB of live BLAS and 9 MiB pinned. The
decodedMB field includes both quant24 vertices and meshlet indices, cumulatively, so it cannot establish the decoded index cache's live footprint.#4579 gives the decoded-index upload cache a 256 MiB budget and logs its live buffer count and bytes. If you're able to try a longer A/B run, the same source revision with and without that PR, and the same scene, DXR, frame-generation and FPS settings, would be most useful. Please keep the
hardware RT meshlet index cache,hardware RT BLAS memory,hardware RT inputsandmemory nowlines. That would show cache size and how much the shared-memory curve and BLAS preparation cost change. Cache PR@TechnoStone on GitHub · 2026-11-30 23:54 UTC · original
Could be related to also link it here #4579