Hardware report: RTX 3050 6 GB Laptop / 16 GB RAM, Series S: RAM runs out at the world load; what helps (cc9ed86) #97
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/TaynanGT--Vice-Tay#97
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?
@nidscode on GitHub · 2026-11-27 00:38 UTC · original
Vice-Tay on a 16 GB laptop with a 6 GB RTX 3050: test report
Build: Vice-Tay
mainatcc9ed86(diag profile,--features diagnostics), Series S profile, windowed.Date: 2026-11-26.
Purpose: where Vice-Tay stands on lower-end hardware, what fails first, and what helps. All measurements come from short, guarded runs.
1. Test machine
Vice-Tay picks the RTX 3050 on its own (
create_preferred_device, high-performance preference), so it needs no adapter override on this hybrid laptop.2. Method
victory.exe shadersand the launcher'sVICTORY_WAVE_WIDE_ONLYlist: 25,786 in the cache, 199 that do not translate, 304 s.scripts\play.ps1 -Console series-s -Windowed, plus-Moreoverrides where listed. Scripted Enter presses (VICTORY_KEYS) reach the story load in about 60–100 s, and the run is stopped after 240 s.3. Results
-Machine auto(selects the 4090 preset)Laptop set:
VICTORY_DSTORAGE_IO=direct,VICTORY_INPLACE=2,VICTORY_WINDOW_KB=64,VICTORY_WINDOW_TAILS=1,VICTORY_WINDOWS_BAR_MB=3072,VICTORY_CARD_BUFFERS_MB=256,VICTORY_LEVELS_ON_DEMAND=1,VICTORY_UPSCALER=6,VICTORY_RENDER_SCALE=0.5,VICTORY_OUTPUT=1920x1080,VICTORY_POKE=71B6330:1. The poke pauses the title's heartbeat watchdog, which otherwise kills a world load that takes more than about 30 s without a frame. A real hang then has to be closed by hand.RAM throttle (PR):
VICTORY_RAM_FLOOR_MB=1500,VICTORY_RAM_WAIT_MS=500,VICTORY_RAM_WAIT_SHARE_MS=900,VICTORY_RAM_FRAME_WAIT_MS=1000,VICTORY_WINDOWS_BAR_PERCENT=92.4. Findings
F1. On 16 GB, physical RAM runs out at the world load, not during play
In every failed run, free RAM collapses while the world streams in. Within about 20 s, the memory the layer shares with the card goes from under 1 GB to 4–5 GB, faster than Windows can write other pages out. Once the world is up, free RAM holds at 0.5–1.2 GB.
The cost: in vt5 the throttle held submissions back for 66.8 s of 240 and made 574 buffers wait 121 s in total. The world's median frame is slower (1.3–1.8 s against 0.8 s for the one unthrottled run that survived). It's a stability-for-speed trade for low-RAM machines, and it's off by default.
F2.
-Machine autogives every NVIDIA card the RTX 4090 presetOn this laptop the auto preset asks for 12 list-translation, 8 memory-update and 6 landing threads, and none of the memory settings above. vt1 then runs out of RAM at the world load. A preset for small NVIDIA PCs, picked automatically under some RAM or VRAM threshold, would let laptop users start from settings that reach the world. A follow-up PR can add this once the throttle settles; the numbers to start from are in section 3.
F3. Where physical RAM goes in the world
Measured on VIctory-NVIDIA (same base) at a snapshot 4 minutes in, with similar numbers on Vice-Tay:
GPU-shared memory keeps growing through the world (4.4 → 5.2 GB in 2 minutes on VIctory-NVIDIA). Windows that a descriptor slot still views can't be let go (
shadow.rslet_go_idlerequires no slot to hold the buffer), so streaming keeps adding them. This looks like the main limit on longer sessions on 16 GB, and likely the same mechanism as #36's "exhausts physical RAM within 10–15 minutes" on 32 GB.F4.
VICTORY_OUTPUT=1920x1080lowers video memory on a small cardWith 1080p output (plus the title's own upscaler at 0.5), the card stood at 4.2 GB of its 5.2 GB budget in the world, with a 4.4 GB peak. On VIctory-NVIDIA, which can't change the output size, the card was full (4.9–5.8 GB), and only 25–660 MB of windows fit there instead of in RAM.
VICTORY_DISPLAY_MODEdoes not change the output, asresolution.rsalready notes. DocumentingVICTORY_OUTPUTfor small cards would help.F5. Texture size is not the card's main consumer at 540p
In the world, host textures took about 1.3 GB for textures the title fills and about 1.0 GB for targets and others, out of 4.9 GB in use. An experimental cap on texture size (largest level 1024 or 512 texels; not in this PR) cut 120 MB and 750 MB of copies. But the queue of textures picked by index fills the freed memory back up to its 90 % line, and the extra room never reached the windows. Lowering the render scale below 0.5 isn't a lever either: the GPU's share of a world frame was about 110 ms of 0.8–1.4 s.
F6. Two warnings that may be bugs
slot=11660 bytes=8294400 frames_after_upload=176 changed=2). It may be related to the texture freshness signals in #88.0x1c8(16) and0x218(13).F7. Different builds share one NVIDIA shader cache
NVIDIA's DX cache keys on the executable's name. Every fork builds
victory.exe, so they all write the same 1 GiB file in%LOCALAPPDATA%\NVIDIA\DXCache. Running another fork pushed out the pipelines a warmed build used, and dropped draws rose untilwarm --usedran again. Telling testers to back up that pair of.nvphfiles, or to rename the executable per build, avoids misleading A/B results.5. Pull request
#96: Add an opt-in RAM throttle for low-RAM PCs (off by default). The details and these measurements are in the PR's description:
VICTORY_RAM_FLOOR_MB: below the floor, the layer's new buffers in the PC's memory wait (VICTORY_RAM_WAIT_MSeach,VICTORY_RAM_WAIT_SHARE_MSper second at most).VICTORY_RAM_FRAME_WAIT_MS: the title's submissions wait the same way, at most half the time.VICTORY_WINDOWS_BAR_PERCENT: the share of the card's budget the windows on the card may take (default 80, as before).6. Suggested next steps
play.ps1(F2), picked automatically under a RAM or VRAM threshold.github-bot referenced this issue2026-11-27 01:29:47 +00:00
@akimfomin on GitHub · 2026-11-27 01:15 UTC · original
Your 16 GB report separates load survival from frame time: the throttle finished both trials, and the surviving unthrottled run had a lower median. AnyXboxX has a different open question for the same class of PC: should its window budget include the copies that are still held? I checked AnyXboxX #466 against the current pinned receiving commit. It merges cleanly, and KainanP's new test covers 3,072 MiB held plus 1,536 MiB idle against a 2,048 MiB budget.
If that is interesting to you, PortBridge Lab #109 has the exact commits and one synthetic test your agent can try first. A bounded A/B is useful only if a permitted workload naturally reaches Watch or High. Existing aggregates or the synthetic result alone are welcome, with no need to reproduce the low-headroom run. I can relay a result with your attribution.
@TaynanGT on GitHub · 2026-11-27 01:29 UTC · original
@nidscode Thanks for the guarded runs. On this 16 GB laptop the throttle got through both world loads, versus one of two on the laptop settings alone. The two surviving throttled runs also had longer median frames than the surviving unthrottled run. I’ll keep those two results visible while reviewing #96 and #100. I also confirmed that
let_go_idlecurrently considers only windows held by no other shadow user and with no extra host-buffer references. Bytes still held by slots and bytes eligible for eviction would be a useful next split alongside the existing total. @akimfomin, thanks for pointing out the held-copy case in AnyXboxX #466. That synthetic result is a useful comparison for the accounting question.@TaynanGT on GitHub · 2026-11-27 01:30 UTC · original
@nidscode @akimfomin I confirmed the held-window accounting gap on Vice-Tay and opened draft #103 with KainanP’s fix from AnyXboxX #466. With 3,072 MiB held and three idle 512 MiB windows, the old eviction function selected nothing at a 2,048 MiB cap. The patched function selects all three idle windows and leaves the held ones alone. That verifies the budget decision in a synthetic test. A guarded game run would tell us how often it makes a difference on 16 GB.
@nidscode on GitHub · 2026-11-27 01:31 UTC · original
Follow-up: where the RAM goes in the world on 16 GB (memory map,
VICTORY_MEMORY_MAP=6)These are diag builds on
cc9ed86with #96 and #100, through-Machine laptop(4.5 GB working-set ceiling). The memory map line ran every 30 s. This is its last sample, about 3 minutes in, in the world:title memory in placeshows 92 MB of windows and 148 MB of buffers in place. 18,688 windows were "turned down: view memory or not private memory committed whole", and they make up the 1.9 GB of window copies. The page pool's section isSEC_RESERVE, soOpenExistingHeapFromFileMappingcan't take it (inplace.rs's notes). On VIctory-NVIDIA I tried putting it in place as committed sections in pieces: it locked about 1 GB of pool to save 0.2–0.7 GB of copies, because a piece is resident as a whole.These were ruled out on this laptop:
-RayTracing.If the 32 MB group is allocator memory, keeping fewer allocators than lists, or releasing idle lists, could give a gigabyte or more back to the title on 16 GB. I can try that next unless you know a better source for it.
@TaynanGT on GitHub · 2026-11-27 01:33 UTC · original
@nidscode Your memory map narrows this down. The existing
memory, what holds itline reports live lists, list scratch and windows held by descriptors or lists. The other line reports cumulative list creations and private bytes measured while creating them. I’d compare both against the 32 MB bucket before treating the allocation size as proof of the driver path. Oncc9ed86, an idle recycled list keeps its command allocator.-More @{VICTORY_LIST_POOL='0'}is an existing switch for a guarded comparison from the same checkpoint. It can increase creation time, so please keep your memory guard and compare the live counts, private growth while lists were made, and the 32 MB bucket over the same opening interval. A small D3D12-only run with allocation stacks would isolate it further if the game comparison points that way. D3D12 allocator reset semantics.@nidscode on GitHub · 2026-11-27 01:42 UTC · original
Corrections to the comment above, after two more checks:
shared_bufferis a custom heap with write-back CPU pages in system memory (protection 0x4). So the growing plain read-write 32 MB group is most likely the driver packing shared buffers into 32 MB chunks: window copies that don't fit on the card, and the 16 MB-rounded fetch buffers. That's the memory #96 throttles.VICTORY_WINDOWS_BAR_MB's, which is on the card, not in RAM.VICTORY_LIST_POOL=0didn't change the count (1,278 lists alive): the live host lists belong to the title's own lists.@TaynanGT on GitHub · 2026-11-27 01:43 UTC · original
@nidscode Thanks for running the 256-pair control and the pool check. That rules out allocator creation as the source of the 32 MB group in your test. I confirmed that
shared_bufferrequests customWRITE_BACKmemory in pool L0 and both fetch paths round allocations to 16 MiB. The 32 MB bucket fits that explanation, though the memory-map protection alone cannot attribute each block. For a guarded #103 comparison, I’d pair the window-copy and held-window counters with DXGI local/non-local usage. That gives us a way to check whether the sweep reduces the shared-memory footprint even when the CPU mapping totals include BAR-backed pages. Shared buffer allocation.@nidscode on GitHub · 2026-11-27 05:51 UTC · original
Update: what holds the process heap, and a 16 GB setup that holds
I hooked the heap calls in the import tables of the NVIDIA driver,
d3d12coreanducrtbase(local diagnostics). The process heap (3.5–3.7 GB committed) is the layer's own ~1.4 GB plus 1.07–1.31 GB live in the NVIDIA driver, which grows through the world. The driver's share halves withVICTORY_LIST_POOL=0: recycled host lists keep their command allocators at their peak.#100 now sets it. On
main+ #100 alone,-Machine laptopwith the watchdog on, both 240 s runs went through: about 180 s in the world, a 650 ms median frame (about 1.5 fps), and free RAM about 1 GB on average. Details in #100.@TaynanGT on GitHub · 2026-11-27 05:53 UTC · original
@nidscode The two 240-second runs with about 1 GB free in the world give us a memory-survival result for this 16 GB setup. The roughly 650 ms frames still put it at about 1.5 FPS.
On current
main,-Machine laptop -More @{VICTORY_LIST_POOL='0'}selects that option explicitly. The launcher passes the override to the child process, andlist.rsuses it to turn off host-list recycling. The detailed allocation comparison is in #100.