8 GB NVIDIA laptop data: VICTORY_MEMORY_CARD_MB=2048 was worth ~6x, plus a possible VRAM creep #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?
Imported from Marvisak/VIctory. Originally posted by YUYING234 on 2026-11-27T11:16:24Z.
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.Imported from Marvisak/VIctory. Originally posted by neonbyte1 on 2026-11-27T11:37:47Z.
@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.
Imported from Marvisak/VIctory. Originally posted by YUYING234 on 2026-11-27T12:58:07Z.
@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).
Imported from Marvisak/VIctory. Originally posted by neonbyte1 on 2026-11-27T13:05:46Z.
@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.
Imported from Marvisak/VIctory. Originally posted by KainanP on 2026-11-27T13:45:54Z.
@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).
Imported from Marvisak/VIctory. Originally posted by vi-tester-8gb on 2026-11-27T13:56:21Z.
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.
Imported from Marvisak/VIctory. Originally posted by vi-tester-8gb on 2026-11-27T14:19:06Z.
@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.
Imported from Marvisak/VIctory. Originally posted by YUYING234 on 2026-11-27T14:30:29Z.
@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.Imported from Marvisak/VIctory. Originally posted by YUYING234 on 2026-11-27T14:31:44Z.
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.Imported from Marvisak/VIctory. Originally posted by KainanP on 2026-11-27T14:38:20Z.
@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.
Imported from Marvisak/VIctory. Originally posted by YUYING234 on 2026-11-27T15:36:51Z.
@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.Imported from Marvisak/VIctory. Originally posted by KainanP on 2026-11-27T20:23:10Z.
@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.
Imported from Marvisak/VIctory. Originally posted by YUYING234 on 2026-11-27T22:42:13Z.
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.
Imported from Marvisak/VIctory. Originally posted by KainanP on 2026-11-27T23:46:25Z.
@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.Imported from Marvisak/VIctory. Originally posted by KainanP on 2026-11-28T06:38:13Z.
@YUYING234 a correction on two numbers in your run, after reading the code and benchmarking on my own 4060 Laptop. No new run is needed for this.
"Slow host list" is card time, not CPU time. With
VICTORY_GPU_TIMING=1, each title list is sent on its own and the submitting thread waits for it (host.rs, theslow host listwarning). The warning fires when the time from sending to waking is over 50 ms, andcommandsis the number of commands noted in that list. So "median 97 ms for 341 commands" is one list of the title's taking ~97 ms on the card: a few of the 6-50 ms dispatches you listed. It is not recording or submission cost. Also, only the first 4,095 commands of a list get a timestamp, so in the 55,894-command list everything after that is billed to command 4,095.Most of "the rest" (30.2 ms) is the timing run itself. That figure is wall time minus the time between the stamps. Barriers and commands of ours recorded between two of the title's commands are inside the 159.1 ms of noted commands, not in the rest. What is left is the sending, signal and wake-up for each list sent alone. A synthetic bench with the same shape (330 lists, 6,900 draws, 1,000 dispatches; fork branch
KainanP/AnyXboxXbench/title-list-barriers) measures 52-60 µs a list for that on the 4060 Laptop, or 17-20 ms for 330 lists. Sent together, the same lists cost nothing extra. The line you quoted ends with "the least a list took N us": if you still have the log, that one number would confirm it on your machine.The same bench also timed our in-list barriers. A UAV barrier on nothing costs 0.2-0.8 µs and a targeted one the same. Duplicate barriers, separate calls and texture transitions cost ~0. A copy placed in a list costs 3-4 µs with its waits, and narrowing them saves nothing. That puts our barriers at roughly 1-2.5 ms of a frame on this card, nearly all of them waits the title asked for. So your conclusion stands: the five compute shaders are where the time goes.
AI use: Claude Code (Claude Opus 5.5) read the code, wrote and ran the bench on my laptop and wrote this comment.
Imported from Marvisak/VIctory. Originally posted by YUYING234 on 2026-11-28T09:20:01Z.
Both corrections taken - and the number you asked for was still in the log, so here it is without a new run.
the least a list tookover the 60 windows of that 200 s run: median 40 us, minimum 35 us, maximum 62 us. At 330 lists a frame that is 13.2 ms a frame, against the 52-60 us a list (17-20 ms) your bench measured. Same order, ours a little cheaper - which fits "the rest" being the sending and waking of each list sent alone rather than anything of the title's.So I withdraw "30.2 ms of ours" as a cost figure: it is the price of the timing run's own shape, not a cost a normal run pays. And with the 4,095-timestamp cap, the 55,894-command list was never 201 ms of work - it was the tail of one command's bill. Both of those were my reading, not your numbers being unclear.
On the slow host list: understood, card time and not our CPU. That also re-reads the earlier figures: the "median 97 ms for 341 commands" is one of the title's lists taking ~97 ms on the card, which is consistent with the 6-50 ms dispatches in the census - it is not the layer adding anything.
Shader census: I will do it. Two things I would rather confirm first than guess at:
victory.exe translatewants four inputs I have not used before. Is it<shaders.rpf> <game exe> <XboxBvhBuilder.dll> <amd_fidelityfx_upscaler_xbox.dll>, taken from the same game folder I run from? I would rather ask than feed it the wrong archive.VICTORY_TRANSLATE_ONLYtake the five hashes exactly as they appear in the timing lines (3cf39f4495b908d0, ...), or in the longer form with the full 16 hex digits? The timing run printed the short form; the census label will tell us, but if the filter wants the long one the run silently produces nothing.Once #570 is in a build I can compile from main, I will post the five census lines as asked - translator side only, no code.
Imported from Marvisak/VIctory. Originally posted by KainanP on 2026-11-28T09:45:47Z.
@YUYING234 thanks, and the 40 µs per list settles "the rest" nicely.
Answers from the code (
apps/victory/src/main.rsTranslate,apps/victory/src/translate.rs):victory translatetakes any number of paths (paths: Vec<PathBuf>), files or folders. Each one is scanned for shader containers the same way the runtime finds them. You don't need to pass four specific files in a fixed order. Pointing it at the same game folder you run from is fine, because it only reads.blake3(container)[..16]), and it matches by prefix. SoVICTORY_TRANSLATE_ONLY=3cf39f4495b908d0,82a2ad6d07417d36,4518151afe8c6c09,dd24ff46af3ae6ee,7b2c3c1db2298f44is exactly right. If nothing matches, the tally showscontainers 0. That's a quick check that it didn't silently skip everything.To get the same translation your runs use, also set
VICTORY_HOST_WAVE=32(andVICTORY_VIEW_LIMITif your run's log prints one). Without these, the census can describe a different lowering than the one your 4060 runs.#570 isn't merged yet. If you don't want to wait, building its branch (
KainanP:feat/shader-cost-census, rebased on current main) gives the sameVICTORY_SHADER_CENSUS=<file>lines. Counts only, as before.AI-assisted (Claude Code); answers checked against the source.
Imported from Marvisak/VIctory. Originally posted by YUYING234 on 2026-11-28T11:26:29Z.
Census done, from
KainanP:feat/shader-cost-census(a37407f), built and run on the 4060 Laptop withVICTORY_HOST_WAVE=32andVICTORY_TRANSLATE_ONLYon the five hashes.victory translateover the game folder, as you said, worked as a plain path argument. The tally saidcontainers 5 (0 duplicates skipped),programs 5 translated of 5 (21951 IR instructions), so nothing was silently skipped.Five lines as asked. I removed only the common
…\GTA6.Xbox.v1.0.2.1-CYBERLEEK\shaders.rpf@prefix and kept the offsets and the names:Two things I did not expect and thought you would want first:
Four of the five are skinning.
CSComputeSkinning{DefaultVelocity,SecMotionVelocity,PedVelocity,PedBlendShapesSecMotionVelocity}- so the hot compute on this card is not shading at all, it is the skinning that feeds motion vectors and the BVH.CSComputeSkinningPedBlendShapesSecMotionVelocityis the largest of the five by far (total=19515,arith=8303,blocks=795,loops=247), and it is the one the timing run had at 24.60 ms a frame in the lobby and 6.9 ms a mean in the cell.The 50 ms outlier is the only wave64 one, and it is the select chains.
CS_ShadowTileBalanceRTCost_03da1e4ais the single line withwave64=1 form=local waves (idiom), and it carriesselect=1725 guard_select=599 indexed_select=561againstarith=3027- the plurality of its work is selects, which is what I would expect the M0-indexed register moves to turn into. In the cell run it was two instances of 50 ms each (dispatch 10x8x1, longest 51.0 ms), i.e. a single dispatch eating a quarter of a frame. If anything on this list is worth attacking, that shape is: 48 threads a group, 32-lane waves, and more than 2,300 selects per dispatch.The three
as isones are straightforwardly large rather than pathological -bitcast726-3097 andmath_call516-2776 are the two biggest translator-side items in all five, and both grow with the skinning loop count.Happy to run the census again with other settings (
VICTORY_HOST_WAVE64, or withVICTORY_LOOPS_WAVEon) if a comparison would help; it takes a minute now that it is built.Imported from Marvisak/VIctory. Originally posted by KainanP on 2026-11-28T12:54:31Z.
@YUYING234 thank you, these lines are exactly what we needed. The
containers 5/5 translated of 5tally makes them easy to trust.7b2c3c1d(50 ms): an A/B request.indexed_select=561is the M0-indexed register reads, which this build lowers as a dependent compare/select chain. #571 lowers them as a select tree instead. I benched the shape of that dispatch: 80 groups with two 32-lane waves each, so it is latency-bound like your 10×8×1. A loop of indexed reads ran 2.6× faster at 20 registers, 4× at 66 and 12× at 130 (0.280 → 0.106 ms … 2.932 → 0.243 ms). My estimate for the dispatch is roughly 15-35 % off (50 → ~33-43 ms). It could be more if those reads sit in its inner loop. That is a guess, so could you time it on the same save?KainanP:feat/shader-cost-censusata37407f(what you built).KainanP:perf/movrel-select-tree. The head is nowa1df4861:446fb7a6plus a test and a cache-version bump. It includes the #570 census commit, and the translation is the same as at446fb7a6.VICTORY_HOST_WAVE=32and the same timing settings for both. The7b2c3c1ddispatch times are enough.The 599
guard_selectand 45loop_counterthere are not a second lever. They are independent one-op selects (≤ ~7 % of its instructions) and 2-3 integer ops per loop iteration.loopswas our bug, not your shaders. The census counted forward branches out of blocks the translator appends as loops. The real loop counts areloop_counter / 3: 1, 1, 2 and 4 for the skinning hashes and 15 for7b2c3c1d. So there is no waterfall loop per buffer access. This is fixed on #570.Skinning: a synthetic skinning program (4 influences, current and previous bone matrices, loop and unrolled) runs as fast translated as in HLSL on the 4060 Laptop (ratio 1.00). Plain FMAs,
dwordx4buffer loads,bitcastandmath_callcost nothing extra. What can cost is a handful of float instructions the translator spells out for exactness, at 2-6× the HLSL time each. #570 now counts them per hash (c_minmax,c_minmax_k,c_round,c_trig,c_perm,c_pk16,c_legacy, counts only). #581 already fixes the clamp-between-constants case (3-6×).You offered a re-run: the most useful one would be the census at the new
feat/shader-cost-censushead (a7767758) for the four skinning hashes. Thec_*fields will say which fix82a2ad6d(24.6 ms) needs.VICTORY_HOST_WAVE=64orVICTORY_LOOPS_WAVEare not needed.AI-assisted (Claude Code); benches on synthetic programs only.
Imported from Marvisak/VIctory. Originally posted by YUYING234 on 2026-11-28T15:46:37Z.
Thanks - and the
loopscorrection is the one that changes how I read our own data:loop_counter / 3gives 1, 1, 2, 4 and 15, so the waterfall I thought I was seeing per buffer access is not there. Same forguard_select: I had it as a second lever and it is 7 % of the instructions.The A/B, yes. One thing to pin down before I run it, so the two runs are comparable:
My 50 ms figure comes from the full DRED path (
VICTORY_D3D12_DRED=1plusVICTORY_GPU_TIMING=1), where the run printsthe card's time by command (timing run)with one line per hash. For7b2c3c1dthat line was:Is that the number you want compared - the per-hash total from the
by commandlines - or do you want the single-dispatch time from theslow host listwarnings? They are different events on our side: the first is the timing run's own accounting of a hash, the second is a list that took over 50 ms of card time. I would rather ask than hand you two runs of the wrong number.Assuming the
by commandlines are what you mean, the plan: same save (the cell block standstill I used for the census, no driving, so the dispatch count is stable),VICTORY_HOST_WAVE=32, full DRED, both builds, three runs each, reporting the7b2c3c1dline and the frame median. Your estimate is 50 -> 33-43 ms; if the translation is identical and only the M0 lowering changes, I would expect the whole-frame number to move less than the dispatch number because the dispatch is ~25 % of a frame at 200 ms.It will be a few hours - the machine is in the middle of a 26,503-pipeline Vulkan build for a different project (Leonida's recompiled runtime, which is the only other tree we run). I will post the two runs together when it is free, so the pair is not separated by whatever else the box is doing.
One more data point you may want, from the same census session:
CSComputeSkinningPedBlendShapesSecMotionVelocity(82a2ad6d07417d36) is the largest of the five attotal=19515, and it is the one our timing run had at 24.60 ms a frame in the lobby. If the select-tree change also touches itsselect=1765, the pair of dispatches would be worth measuring in the same run - say the word and I will include it.Imported from Marvisak/VIctory. Originally posted by KainanP on 2026-11-28T16:16:38Z.
@YUYING234 yes, the
by commandper-hash line is the right one:2 instances, … ms each, dispatch 10x8x1, longest …. It times that dispatch itself. The slow-host-list warning times a whole list, so it would mix in everything else in that list. Your plan sounds right: same standstill,VICTORY_HOST_WAVE=32, full DRED, both builds, three runs each, plus the frame median. You're also right that the frame should move less than the dispatch.On
82a2ad6d: #571 shouldn't change it. Its census line hasindexed_select=0, so it has no M0-indexed moves, and itsselect=1765are ordinary selects that the tree doesn't touch. It's still worth including in the same runs as a control: if its time moves noticeably between the two builds, that tells us how much of any7b2c3c1ddifference is run-to-run noise.No rush, and thanks for keeping the two runs together.