8 GB NVIDIA laptop data: VICTORY_MEMORY_CARD_MB=2048 was worth ~6x, plus a possible VRAM creep #3505
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#3505
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?
@YUYING234 on GitHub · 2026-11-27 11:16 UTC · original
Measured on an 8 GB NVIDIA laptop (RTX 4060 Laptop, 8188 MiB; D3D12 budget reported 6489-6569 MB), i9-14900HX, 32 GB DDR5, Windows 11 build 26300, driver 621.01, hybrid graphics. Public fork
edsuuu/VI-BR-PORT, built from source (MSVC 14.44 + rust 1.98.1, ~45 s). No game files included or linked.Posting here because two of the findings look layer-level rather than fork-level, and this is where most people will look.
Results (Series S profile, 1080p)
Two switches that mattered
VICTORY_MEMORY_CARD_MB=1024->2048VICTORY_HEAP_RECHECK=0The first one is worth ~6x on this card: at 1024 the GPU sits idle most of the frame, waiting for memory. The second changes no frame rate while the GPU is the limit, but removes about a third of the host-side work, so it should matter as the GPU side improves. No visual difference; the "texture picked by index changed after its upload" warnings drop to zero.
Negative results (so nobody repeats them)
VICTORY_ASYNC_SUBMIT=1: 13-17 -> 7-12 fps on this 32 GB laptop, i.e. worse (it is reported as +1.4 fps on a 64 GB desktop, so it looks memory/thread-count dependent).Something that may be a real leak
VRAM goes 7342 -> 7921 MiB in 6 minutes (96 % of 8192). At the ceiling the frame rate collapses to 3-4 fps and textures blur; restarting the title resets it. If this reproduces for others on 8 GB, a note about session length would save people some confusion.
Shaders that still fail to translate (dropped draws)
002e93a6cc2aa355,0e64f14fae060d04,dbdbf36298727135,96ccb14ef981fd85(a lane-read VGPR written without a dword value);77360df21e12ea43,9fc111d3be79364f,39321a95223001ed(a first-lane read where not every lane);07c93bfb77fecebb(a descriptor read only as data). Plus 7 compute pipelines refused by the driver withE_INVALIDARG (0x80070057).Full configuration and the A/B tables:
edsuuu/VI-BR-PORTPR #7 (docs/benchmarks-4060-laptop-8gb.md). Tracker entry: 4lwayz/portwatch-vi issue #251.@neonbyte1 on GitHub · 2026-11-27 11:37 UTC · original
@YUYING234 thanks for the shader list. I ran your 8 hashes through an offline census on our tree (
mainplus the PRs we need on NVIDIA under Wine, with #3506 to match runtime hashes): all 8 translate there. 7 already do on our base;07c93bfb77fecebbneeds #2999 (implicit-derivative samples in compute). The reasons you saw ("a lane-read VGPR written without a dword value", "a first-lane read where not every lane") don't exist inmain's translator, so they come from the fork's own changes; that may be worth raising on the fork. Details are in #3502.For the 7 compute pipelines the driver refused with
E_INVALIDARG: if you can post their hashes (from thedropped ... refused [compute <hash>]lines), I'll check them on our RTX 5090, and they would go into section C of #3502 as host refusals with your driver version.AI-assisted (Claude); measured on my machine, no game data shared.
@YUYING234 on GitHub · 2026-11-27 12:58 UTC · original
@neonbyte1 thanks - both answers below.
The 7 hashes the driver refused with
E_INVALIDARG(fromhost pipeline refused error=0x80070057 shaders=[compute <hash>], 7 distinct hashes over a 10-minute run, each seen once and never retried):Every one of them carries the same annotation on the same log line:
So this looks like the wave64-vs-wave32 item you already have in #2220 rather than seven separate bugs: the shader asks for 64-lane waves, and NVIDIA refuses the pipeline instead of lowering it. If a wave32 fallback exists somewhere in
mainbut is not reached from this fork's path, that would explain why we see seven.On the 8 shader hashes: understood, and that is useful - if
main's translator handles them and this fork's does not, then the fork carried a regression in its shader changes, and I will raise it there rather than here.07c93bfb77fecebbwaiting on #2999 is noted.For context, this is the same machine as 4lwayz/portwatch-vi#251 and it runs the fork at 12 fps median (13-17 walking, 9-12 in the heaviest street scenes, 8 GB laptop, Series S, 1080p).
@neonbyte1 on GitHub · 2026-11-27 13:05 UTC · original
@YUYING234 thanks, that settles it. All 7 are wave64 programs with groups larger than 64 threads (
numthreads128 to 1024, from #3506's census output), so your reading matches: the fork emits them withWaveSize(64)and NVIDIA refuses the pipeline (#2220). Onmainthe same programs never reach the driver: the translator refuses them on 32-lane hosts ("console wave64 lanes in a group of more than 64 threads"), and three of them (2da4beb3…,02384a60…,6b82bc7d…) are rows of section A in #3502 for that reason.The fix on both paths is the wave64 stack #2176 → #2711 → #2925, which runs each console wave as two 32-lane halves. In our offline census on an RTX 5090 setup (
victory translate --list --host-lanes 32-32), all 7 translate with it. That stack hasn't landed yet, so onmaintoday these dispatches are dropped rather than refused.AI-assisted (Claude); measured on my machine, no game data shared.
@KainanP on GitHub · 2026-11-27 13:45 UTC · original
@YUYING234 this is the most useful 8 GB laptop data I've seen, thanks. I have the same card (RTX 4060 Laptop 8 GB) and I'm working on the 8 GB side of LooperSalty/AnyXboxX (its LowVram preset's texture cap is currently not read by its new Vice-Tay base). If you ever have time for one more run, an AnyXboxX
mainrun with the 8 GB preset and the frame/GPU-time log lines (same scene, Series S, 1080p) would tell us whether that base is GPU-bound the same way on this card — nobody has posted an 8 GB laptop run of it yet. Your two findings (VICTORY_MEMORY_CARD_MB=2048~6×,VICTORY_HEAP_RECHECK=0) are going into that work with credit.AI use: Claude Code (Claude Opus 5.5).
@vi-tester-8gb on GitHub · 2026-11-27 13:56 UTC · original
RTX 5060 Laptop 8 GB: trustno1 vs Zaka vs Kemerd, same scene, frame generation on an 8 GB card
Adding a second 8 GB laptop data point next to the RTX 4060 Laptop numbers above, this time comparing three
public NVIDIA forks on the same machine and the same scene (prison prologue), each built from source. No game
files, no NVIDIA files redistributed (Streamline v2.14.16 taken from NVIDIA's GitHub release, signatures checked).
Machine: RTX 5060 Laptop GPU 8 GB (115 W limit), i7-13620H (6P+4E, 16 threads), 31.6 GB RAM, Windows 11
build 26300, driver 621.24, PCIe Gen5 x8 under load, Resizable BAR on, MUX in discrete mode, on AC.
Fan/power profile: vendor "performance". CPU held turbo the whole time (~140-155 % of base clock).
Common settings: Series S profile, DLSS Quality through Streamline, DLSS frame generation, windowed.
Each fork has its own cache and data folder; shaders pre-translated with
victory shadersbefore the first run(25,667 translated, 222 do not on the trustno1/Kemerd tree; 25,689 / 200 on Zaka's).
Results
Frame times from the window title every ~4 s, split by draws per frame. "Rendered" = what the title runs at;
frame generation multiplies the shown rate only.
959dcaf421dfac, its "fast" setBoth trustno1 and Kemerd numbers include their first launch. Best moments with Kemerd: 18.8 rendered / 75 shown
at 2,600 draws. Kemerd whole session: n=370, median 76 ms, p90 121, p99 203. No crash, no device loss
(~25 min). Pool tuning from trustno1's launcher was on for both (THIN 12 / UNDER 8 / LAND 6, PLACED_ORDER=1).
Observations
(CPU at 99 %, log:
dropped N without a host pipeline (M being made)); only once that count reached 0did it jump to 14 fps. Kemerd ran ~11 fps while ~510 were still being made. The p90 difference
above (301 vs 80 ms) is mostly this.
the submitting thread preparing ~55-60 ms, the card 76-95 % busy at only ~50 W of 115.
Texture queue at the same time:
6633 MB in use ... = 5924 MB against a line of 5459 MB (80.0 % of a budget of 6824 MB): no room, new textures wait. With frame generation on, render targets plus FG take~1.7 GB more (trustno1:
1695 MB kept for render targets, 6,942 MB against a 5,266 MB line).So unlike the 4060 Laptop report above, frame time here does scale with draw count (64 ms -> 93 ms).
victory upscaler-check --device --present:DLSS and FG supported, 180/180 generated frames, status 0. In game the title shows
X fps (frame gen 4X fps)consistently.victory warmdid nothing for us (possible bug or misuse). Kemerd tree,VICTORY_CACHE_DIRset to acache whose
pipelines\known-pipelines.bin(plus early/slow lists) came from a trustno1 run of the sametitle:
83563 pipelines known, 0 made before, 0 bad; 2470 to makewith--used, then0 made in 4 s (0 have no host pipeline, 0 ended their process), also with--jobs 1 --limit 5.No error printed. Maybe the book is not usable across trees, or warm needs the title images a first run
writes into
cache\images; if so, a message saying why would help.pipelines were made, CPU 42-82 %. One visual issue: a cellmate's hair strands and glasses floating beside
the head (not seen on trustno1/Kemerd in the same spot).
Not tried yet
VICTORY_HEAP_RECHECK=0(from the report above) on Kemerd: added to our launcher, not measured yet.VICTORY_MEMORY_CARD_MB: Kemerd's default is already max(4 GiB, budget/4), so the 1024 -> 2048 findingabove does not apply as is; unclear whether 4 GiB is too much on an 8 GB card with FG.
scenes.
Measured on my laptop and written up with help from Claude.
@vi-tester-8gb on GitHub · 2026-11-27 14:19 UTC · original
@KainanP here is the AnyXboxX run you asked for, on an 8 GB laptop, plus what we learned on the same machine tonight that may help the 8 GB side.
Setup: LooperSalty/AnyXboxX
mainas of 27 Nov ~14:10 UTC, its ownthird_party/victory(Vice-Tay base) built from source. RTX 5060 Laptop 8 GB, i7-13620H (16 threads), 32 GB, driver 621.24, on AC (same machine as my comment above). Series S (--console series-s),VICTORY_DISPLAY_MODEandVICTORY_OUTPUT= 1920x1080, windowed. Environment =TUNED+ the 16-thread pools (12/8/6) + the launcher's "8 GB card" preset (CARD_WINDOWS_MB=512,CARD_BUFFERS_MB=512,TEXTURE_ROOM_PERCENT=85,TEXTURE_MAX_SIZE=1024), copied fromcrates/anyxboxx/src/run/settings.rsandcrates/anyxboxx-launcher/src/options.rs. Same prison prologue scene as before, shaders pre-translated withvictory shaders(25,690 / 199 do not).(The launcher itself did not build from the GitHub zip:
third_party/tomboxis a submodule, soanyxboxx-audio'sxmadependency is missing outside a recursive clone. Worth a line in the README.)Result
Pipelines 3 wk, 1,153 making at the start, 452 after ~6 min0 making, ~6,300 drawsSubmit 1 thr 99%, Lists x1.3, Landing x4.1; nvidia-smi SM 75-100 % at only ~36 W; VRAM 5.6 / 6.7 GB (overlay), CPU turbo heldFor comparison, same laptop and scene: Kemerd/VIctory-NVIDIA-RT with its "fast" set does ~93 ms at >= 3,500 draws (~100 ms at 6-9k), trustno1 ~115 ms. So on this 8 GB laptop the Vice-Tay base with the 8 GB preset is about 2.5-3x slower, and the limit looks like the single submitting thread rather than VRAM: the overlay showed 5.6 of 6.7 GB at Series S 1080p (I did not capture the texture-queue log line in this run).
VICTORY_TEXTURE_MAX_SIZEis not readConfirming what you said: no file under
third_party/victory/cratesorappsnamesVICTORY_TEXTURE_MAX_SIZE(the other three preset variables are read). So in this run the texture cap did nothing; the smaller reserves alone kept VRAM in budget.What helped on this laptop (in case it ports to the 8 GB preset)
All measured on the same RTX 5060 Laptop, same scene:
VICTORY_SEND_THREAD=1(ExecuteCommandLists on its own thread),VICTORY_REFRESH_SET=1,VICTORY_REFRESH_SPLIT=1,VICTORY_WAIT_SPLIT=1,VICTORY_TITLE_WRITE_RANGE=1,VICTORY_UNDER_PARTS=1,VICTORY_DECLARE_ACROSS_LISTS=1, plus itsVICTORY_MEMORY_*set. Several of these may not exist on the Vice-Tay base; the "one refresh step per list instead of ~52,000" change in Kemerd's README is the one that looks most relevant toSubmit 99%.VICTORY_PIPELINE_SAMPLER_TABLE=1), so later launches do not rebuild ~1,100 of them. Here, 3 pipeline workers on a 16-thread laptop meant ~9 minutes at 2-3 fps.no room, new textures wait) and heavy scenes became GPU-bound at ~50 W. If AnyXboxX adds FG, the 8 GB preset would need to leave that room.VICTORY_HEAP_RECHECK=0from @YUYING234's report is in our Kemerd launcher now; not measured separately yet.If one specific switch set on this laptop would answer a question for the 8 GB work, say which and I can try to run it.
Measured on my laptop and written up with help from Claude.
@YUYING234 on GitHub · 2026-11-27 14:30 UTC · original
@KainanP ran it. Same card as yours: RTX 4060 Laptop 8 GB, i9-14900HX, 32 GB DDR5-5600, driver 621.01, Windows 11 26300. AnyXboxX
14f488bbuilt from source (cargo build --release -p anyxboxx, 1 m 22 s), Neptune/Vice-Tay base built on first run.Command (the four values of
LOW_VRAM, plus the 1080p override from the docs):Two things you will want to know before reading the numbers:
console Xbox Series X, andRunArgshas no console option, so this run is Series X — it is not the Series S comparison you asked for, and I would need a flag (or the same run on a build that has one) to give you that.VICTORY_OUTPUT=1920x1080did not take: the log still reportsdisplay mode reported to the title width=3840 height=2160. Either the tuned profile sets the display size after--override, or the key is not the one Vice-Tay reads. Worth a look — the docs say that override is how you get 1080p.Frame and GPU time (97 samples of the runtime's own line, about 9 minutes with the cache cold)
Whole session: median 4.2 fps (mean 7.7, best 30 in menus, worst 0.4 while the pipelines were still being made), median frame 237 ms. The runtime's overlay after the world loaded gives 30-second averages of 2.5 fps while cold → 11.2 fps in the kitchen interior (1,574 draws) → 5.9 fps in the cell block (2,222 draws).
The answer to your question
In the world, yes: this base is GPU-bound on this card — but with a heavy CPU tail. In the last four samples the GPU holds 110 to 163 ms of a 175 to 230 ms frame (55-75 %), with 33-45 ms preparing (12-17 ms of that copies) and 23-30 ms copying back 21-29 MB. In the lighter interior (1,574 draws) the picture flips: GPU 28-47 % busy and one submit thread at 41-57 % becomes the limit, which is the same shape as VI-BR-PORT on this card.
Two further numbers that may matter more than the fps: 234 to 396 draws a frame are dropped without a host pipeline once the world is up, and RAM reaches 19.2-22.9 GB in the process, 30.2 of 32 GB for the system — this laptop has no headroom left at that point. VRAM stayed honest: 5.7-5.8 GB of the 6.4 GB budget, so the LowVram reserves (512 / 512) do keep the card under budget even if the 1024 texture cap is not read by Vice-Tay as you said.
--frametime-dumpdid write%LOCALAPPDATA%\victory\cache\frametime.csv(119 KB) if you want the raw rows; the header saysgame: unknownbecause the title hash is not in that build's table.@YUYING234 on GitHub · 2026-11-27 14:31 UTC · original
Correction to my own message above, before anyone acts on the second point:
VICTORY_OUTPUT=1920x1080did work. The log has it:What I read as a failure,
display mode reported to the title width=3840 height=2160(dxgi.rs:246), is the reported display mode of the Series X profile, whichVICTORY_OUTPUTdoes not change - it patches the title's output size and the back buffer pool check instead. So the run really was 1080p output with a 4K mode reported, and the GPU figures I quoted (-128 to 163 ms in the world) are 1080p output figures, which is what you asked for.The Series S point stands: the CLI has no console option and the log says
console Xbox Series X.@KainanP on GitHub · 2026-11-27 14:38 UTC · original
@YUYING234 thanks for the 8 GB numbers here. They pointed at something on the AnyXboxX side.
AnyXboxX's "8 GB card" preset caps the game's textures at 1024 texels, but its current (Vice-Tay) base didn't read the cap. LooperSalty/AnyXboxX#506 makes it work again. In a synthetic texture-churn bench on an RTX 4060 Laptop with the 8 GB preset settings:
The bench found no VRAM creep in the texture path. If the 7.3 → 7.9 GB creep you saw is real, it's probably elsewhere.
None of this is measured in game. If you can run AnyXboxX with the 8 GB preset on
mainand on that branch (same spot, ~6 min,VICTORY_FRAMETIME_DUMP=1, plus the log's memory lines), that A/B would settle it. Details are in the PR.AI use: drafted with Claude Code; numbers from my own runs.
@YUYING234 on GitHub · 2026-11-27 15:36 UTC · original
@KainanP ran the A/B you asked for:
main(14f488b) againstperf/texture-max-size(b8dbb61, #506), same machine, same save, the fourLOW_VRAMvalues,VICTORY_OUTPUT=1920x1080(patched, confirmed in the log),--frametime-dump, six minutes each, both with warm caches so the comparison is not polluted by pipeline building.What it says
mainpeaks at 7145 MiB (745 over) and #506 at 6775 MiB (375 over). The cap halves the overshoot, it does not remove it - on an 8 GB laptop card the reserves plus that texture floor still do not fit.Raw artefacts if you want them:
%LOCALAPPDATA%\victory\cache\frametime.csv(one row a second, overwritten by the second run), and the two tracing logs of 4.2 MB each, which I can attach or grep for whatever line you name. Neither repository is involved and no game files are included.Method note for anyone repeating this:
--auto-ais what gets both runs to the same place, and the first run of any build spends about 700 pipelines inmakingfor the first two minutes, so a cold run measures the cache, not the base.@KainanP on GitHub · 2026-11-27 20:23 UTC · original
@YUYING234 thanks for both runs. They're the only AnyXboxX numbers on an 8 GB laptop so far. One more would settle what we work on next: the GPU's ~110 ms per frame hasn't been split yet into the game's own commands versus our passes (prelude refreshes, steps, card compares).
Could you run the same setup once with the timing switch?
main, a warm cache, and 150 s standing at one fixed spot in the world (the cell block is fine).the card's time by list (timing run)andthe card's time by command (timing run).AI use: drafted with Claude Code.
@YUYING234 on GitHub · 2026-11-27 22:42 UTC · original
Ran it. One thing first, because it cost me two runs: the
by commandline does not print with the tuned set.TUNEDhasVICTORY_D3D12_DRED=light, andHostList::note()returns straight away in light mode, soslowest()comes back empty: the list line saystheir noted commands 0.0and no per-command block follows. Adding--dred(VICTORY_D3D12_DRED=1, full) makes every command write a timestamp and a marker, and both lines appear. Might be worth a line in the README next to--override VICTORY_GPU_TIMING=1, since your instructions there are the only place anyone would look.What I ran
bebcfb1, warm cache, saves cleared so the title starts at the cell block. Stood there for 200 s once the scene settled (~6,900 draws, 3 fps / 386 ms with DRED full on). 4060 Laptop 8 GB, Windows 11 26300, driver 621.01. 60 copystat windows, 3,371 slow-command lines.The split you asked for (GPU timestamps, ms a frame)
So on this card the layer is not the 110 ms: the title's own commands are 92 % of the card's time and our own 8 %.
Where the time goes inside the title's commands
Every slow-command warning in the 200 s (all of them compute dispatches) by shader:
3cf39f4495b908d082a2ad6d07417d364518151afe8c6c09dd24ff46af3ae6ee7b2c3c1db2298f44Caveats I would rather state than have you find:
3cf39f44(about 3.4 a frame) and ~10 ms for82a2ad6d(about 1.5 a frame).82a2ad6dat 24.60 ms a frame and7b2c3c1dat 14.45 with a 23.37 longest. Same three shaders, so they are not scene-specific.7b2c3c1dis rare but brutal: two instances of 50 seconds-per-thousand each (50 ms), 1260x1x1 workgroups. If anything on this list is worth a look, it is that one - it is a single command that eats a quarter of a frame.Host lists, for the CPU side
589 slow-host-list warnings in the 200 s: median 97 ms for 341 commands, worst 201 ms for 55,894 commands. Those are ours, and they are big - if the submitting thread is ever the limit on a slower card, this is where it would show.
Memory at the time
That is with the 8 GB overrides you gave. Worth knowing that the card the D3D12 budget reports here is not a constant - as the shared side fills, Windows cuts the budget (I have seen it at 5.2 GB in the same scene), so a trim to "the budget" is chasing a moving number on this machine.
Happy to repeat the 200 s with different overrides or a different spot, or to dump the raw log lines - it is 6.5 MB of text and I did not want to paste it.
@KainanP on GitHub · 2026-11-27 23:46 UTC · original
@YUYING234 thank you, this is exactly the split we were missing. It moves the work: on the 4060 Laptop the layer is ~8 % of the card's time (preludes 5.5 %, copy compares 2.7 %), and the title's commands are ~92 %. Nearly all of that 92 % is in five compute shaders. Thanks also for spelling out the caveats (≥ 6 ms threshold, full DRED inflating the figures).
The
by commandline under light DRED is fixed in LooperSalty/AnyXboxX#568. WithVICTORY_GPU_TIMING=1, every command is named and timed underVICTORY_D3D12_DRED=light(the tuned set) or with no DRED at all, without a marker each.--dredis no longer needed, so the timing run should be far less inflated than at 386 ms a frame.Next ask, if you have time. LooperSalty/AnyXboxX#570 extends
VICTORY_SHADER_CENSUSso thatvictory translatewrites one line per shader with translator-side counts only, no code: instruction kinds, group barriers we add when a wave64 program runs as two waves of 32 on NVIDIA, the select chains we emit for M0-indexed register moves, 64-bit results, loops and our loop counters, guard/clamp selects, LDS bytes, thread group, required wave size, which wave64 fallback form was used, and the number of bindings. With a build that has #570 (merged, or that branch):Run it on the 4060, so the host wave size is the one the game runs with. Then paste the five lines of
census.tsvhere. They are tab-separatedname=countpairs, plus the label with the#hash. Please post only those lines: no shader bytes, no DXIL, no dumps.If
7b2c3c1dor82a2ad6dshow a largeadded_barrierorindexed_select, or aform=other thanas is, that is where we will spend time next.