Neptune_VI (zm0kie's fork) on RX 6900 XT / Win10: ~3.6 fps in the cell instead of ~0.6, no graphics errors there #52
Labels
No labels
accessibility
bench-bm-v1
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/PastiiJay--klbf-lab#52
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?
@BlackBu7let on GitHub · 2026-11-25 21:44 UTC · original
Related to #39. I tried another fork on the same PC (Ryzen 5 3600, RX 6900 XT 16 GB, driver 32.0.21045.29003, 32 GB RAM, Windows 10): https://github.com/zm0kiemedia/Neptune_VI (c554639, a port of Neptune by Traffic & imgone). Build: that commit with the same
VICTORY_STEP_OVERport as in #39 (crash.rs), diagnostics build, same skip file for pipeline 39f0e9aeb156a61c. Switches from itstools\play-zm.ps1with the-Ram32profile (VICTORY_RELAY=2,VICTORY_RELAY_OWN_QUEUE=1,VICTORY_INDIRECT_RAW=3,VICTORY_QUIET_BACK,VICTORY_WIDE_MERGE,VICTORY_COPY_CHANGED,VICTORY_UNDER_WRITES_*, ...) plusVICTORY_D3D12_DRED=1. Series X path, no FSR, frame generation off.Result in the cell (same scene I used for the Lab 39 runs):
No graphics errors in the cell: faces, hair, clothes, walls, windows, floor and bunks all there, nothing purple. No crash and no DRED line so far (about 18 minutes of run when I wrote this, the last log values were 3.3-3.8 fps).
For comparison, triippywhale's
main(7961866 + the same step-over) gave about 0.5-0.7 fps in the cell, so about the same as Lab 39 here.Things to know:
D3D12SDKVersion = 620) beside the exe. With our 1.614 folder it dies at start (0x887E0003,D3D12SerializeVersionedRootSignaturefails).victory.exe warmwould probably do this beforehand, I did not use it.translatehas no--cacheoption, so the pre-build of Lab 39 does not work on it.The two things that look different from Lab 39 are the copy-back time (the biggest part of the frame before) and the switches
RELAY_OWN_QUEUE/QUIET_BACK/WIDE_MERGE. Happy to test single switches on Lab 39 if that helps to find out which one does it.@HandshakeHackin on GitHub · 2026-11-25 21:50 UTC · original
For the single-switch comparison, I checked the actual Lab 39 revision (
5de296d). Of the three switches you singled out, it readsVICTORY_WIDE_MERGE. I found no reads ofVICTORY_RELAY_OWN_QUEUEorVICTORY_QUIET_BACKanywhere in that revision, so those two settings alone would leave Lab 39 running the same code.A focused A/B is the same warmed cell on the same Lab 39 build, first with
$env:VICTORY_WIDE_MERGE = '0', then with'1'in a fresh game process. The setting is read once. It parallelizes the merge when at least eight changed pieces come back from the card. Medianms copying backand the accompanying MB/frame over the same scene window would show whether the switch helps on your 6900 XT. Switch definition · Dispatch condition@PastiiJay on GitHub · 2026-11-25 21:51 UTC · original
Thanks @HandshakeHackin, good catch, and I confirm it on our side: in Lab 39 (
5de296d) onlyVICTORY_WIDE_MERGEis read;VICTORY_RELAY_OWN_QUEUE,VICTORY_QUIET_BACKandVICTORY_COPY_CHANGEDdon't exist in that revision, so setting them would change nothing.@BlackBu7let, so the one meaningful single-switch test on Lab 39 is the one described above: same warmed cell,
$env:VICTORY_WIDE_MERGE = '0', then'1'in a fresh game process, and the medianms copying backplus MB/frame for each. If it doesn't move the copy-back time much, that tells us the difference comes from code Lab 39 doesn't have, which is useful too.@BlackBu7let on GitHub · 2026-11-25 21:59 UTC · original
Thanks both, and one correction to my first post: Neptune_VI crashed after 20:25 min in the cell. The fps stayed at 3.3-3.8 until the end, then:
host GPU failure: host GPU device removed after 2 submissions sent ahead (VICTORY_RELAY=1) of 8 lists; page fault at 0x882a6d000; the nearest title memory copy below it: 0xc7f800000+0x200000 at host 0x821dc0000, offset 0So with
VICTORY_RELAY=2and the other switches ofplay-zm.ps1, the RX 6900 XT hangs after some minutes, the same kind of device removal I had earlier withRELAY/LATE_WAITon RDNA2. Please read the "no crash so far" in my first post with that in mind: the speed is real, the run was not stable.Next, as discussed:
5de296d, step-over as in #39) in the same cell,VICTORY_WIDE_MERGE=0and then=1, each in a fresh process, median ms copying back and MB/frame over the same scene window. I'll post both numbers here.VICTORY_RELAY=0, to see how much of the speed is left without the hang.@PastiiJay on GitHub · 2026-11-25 22:00 UTC · original
Thank you @BlackBu7let for the honest correction, that's exactly the kind of detail that keeps everyone's numbers trustworthy. Noted: the speed was real, but that setup lost the device after ~20 minutes on your RX 6900 XT, with a page fault, the same kind of hang you saw earlier with relay / late wait on RDNA 2. For us that means any of those copy-back changes we bring into KLBF Lab must be tested for stability on its own, not just for fps.
Your plan is perfect: Lab 39 with
VICTORY_WIDE_MERGE=0then=1first, then the relay-off run. Looking forward to the numbers.@PastiiJay on GitHub · 2026-11-25 21:47 UTC · original · edited 2026-11-25 22:07 UTC
Thanks a lot @BlackBu7let, a very careful report, same PC and same scene as #39. What we take for KLBF Lab: on your RX 6900 XT / Windows 10, our Lab 39 spends most of the frame copying back (~700-1,300 ms) and preparing on the CPU (~300-420 ms) in the cell, so that's where our work has to go on your card. Thanks also for the practical notes (Agility SDK 1.620 for that build, the cold pipeline cache, no
--cacheoption).Yes please to your offer: testing single switches on Lab 39, one per run, is exactly how we work, and it would tell us which change moves the copy-back time on your card. If any of them ends up in KLBF Lab, the credit goes to the authors of that work (Traffic and imgone for Neptune, zm0kie / @zm0kiemedia for the port in zm0kiemedia/Neptune_VI) and to you for finding it. We'll check the copy-back time on our RX 9070 XT in the same scene and post it here.
@BlackBu7let on GitHub · 2026-11-25 22:20 UTC · original
Lab 39 + step-over,
VICTORY_WIDE_MERGEA/B in the cell (RX 6900 XT, Win10)Same build (
5de296d+ step-over), same cache and data folder, same cell, fresh process each. Both runs were stable while measured. Median over 26 (=0) and 28 (=1) stats lines, about 4-5 minutes each, with 5,000-6,000 draws/frame:So the switch makes no useful difference on this card.
=1is, if anything, slightly slower, which is within normal run-to-run variation. The big copy-back gain seen in Neptune_VI (45-65 ms) therefore comes from code that Lab 39 doesn't have. I'll test Neptune_VI withVICTORY_RELAY=0next and report the speed and stability.@PastiiJay on GitHub · 2026-11-25 22:21 UTC · original
Thanks a lot @BlackBu7let, clean A/B. What we keep: on your RX 6900 XT,
VICTORY_WIDE_MERGEmakes no useful difference in Lab 39 (copy-back ~1.1-1.3 s either way, within run-to-run variation), so the copy-back gain has to come from code Lab 39 doesn't have. That's in line with what we're doing: those copy-back changes are being brought into our next test build, each one off by default, so they can be tested one at a time, for stability first after your 20-minute note. We'll post here when that build is out. Looking forward to your relay-off run.@BlackBu7let on GitHub · 2026-11-25 22:56 UTC · original
Neptune_VI with
VICTORY_RELAY=0(all other play-zm.ps1 switches unchanged), same cell, RX 6900 XT / Win10Same build as before (c554639 + step-over, Agility 1.620.2, warm pipeline cache). Only change:
VICTORY_RELAY=0instead of2.Stable: about 24 minutes in the cell, no GPU device removed, no DRED line, no crash (the
RELAY=2run lost the device after 20:25 min). I closed the game myself.Median over 172 stats lines in the cell (about 6,900 draws/frame):
So the large copy-back gain (about 1,100 ms down to about 57 ms compared with Lab 39) does not depend on the relay. About a third of the fps is lost without it, and the device removal seems to be tied to the relay (sending lists ahead). Lab 39 was at 0.5 fps in the same cell.
Not yet known: whether
COPY_CHANGED,QUIET_BACKorINDIRECT_RAW=3is the part that removes the copy-back cost. Happy to test them one at a time if that helps. Next I'll try avatarmanz/VIctory-7900XTX on this card.@PastiiJay on GitHub · 2026-11-25 22:56 UTC · original
Thanks a lot @BlackBu7let, this answers the key question. What we keep: with the relay off, that setup ran ~24 minutes with no device removed (you stopped it), and the copy-back stayed at ~57 ms per frame instead of ~1,100 ms in Lab 39, at 2.1 fps. So the big copy-back gain doesn't come from the relay, while the device loss after ~20 minutes looks tied to it, as you say.
That's exactly what we needed for our next test build: the copy-back changes are being brought in one by one, each off by default, and your result tells us to test them with relay off first, for stability. Yes please to testing
COPY_CHANGED,QUIET_BACKandINDIRECT_RAW=3one at a time if you have time; it would show which one removes the copy-back cost on your card.@BlackBu7let on GitHub · 2026-11-26 02:16 UTC · original
Data point: best stable build on RX 6900 XT / Windows 10 so far
Wanted to share where my comparison ended up, since it might help with prioritising. Hardware: RX 6900 XT 16 GB, Ryzen 5 3600, 32 GB RAM, Windows 10, Series X path, first world cell, all with
VICTORY_RELAY=0(RELAY=1or2removes the device on RDNA 2 in the builds I tried, except Neptune_VI withRELAY=2, which gave 3.0–3.8 fps for 20 minutes before a GPU hang).5de296d)0a43566)The avatarmanz fork was the fastest build with
RELAY=0here (Neptune_VI withRELAY=0ran 24 minutes without a device loss). Textures for walls and beds were there immediately; in an earlier run one character's face was missing for the first minutes. fxceless main had dark/incorrect textures here. Neptune-VE with a fully warmed, empty cache gave the same fps as Neptune_VI, so the warm-up does not change throughput.What still limits everything is frame time, not loading: even with copy-back at 45–83 ms, the GPU side is ~180 ms of ~370–470 ms, at about 6,400 draws/frame. So the big remaining cost is not the copy-back any more.
One more thing from the Neptune-VE warm-up: 7 compute shaders do not translate (
GFX10 code … a descriptor read only as data is not supported), so their draws are dropped. Hashes start with07c93bfb,002e93a6,0e64f14f,96ccb14e,dbdbf362and6871d6e4(the seventh is in my log). Also,warmwithout--no-pipelinesfilled RAM to 22–23 GB with no cache growth for 15+ minutes on this build, with the default job count and with--jobs 4.warm --no-pipelinesfinished in 163 s (25,751 shaders translated, 7 refused).@PastiiJay on GitHub · 2026-11-26 02:16 UTC · original
That table is exactly what we needed to set priorities. Two things we take from it: with relay off, avatarmanz's 7900 XTX fork is the fastest on your RDNA 2 card (372 ms), and once copy-back is down to 45–83 ms the GPU side (~180 ms at ~6,400 draws) becomes the real cost, so that's where the next work has to go.
The 7 compute shaders refused with "a descriptor read only as data is not supported" are noted too; we'll check whether the same hashes fail on our RX 9070 XT. And good catch on
warmfilling RAM without growing the cache, while--no-pipelinesfinishes in under 3 minutes.@BlackBu7let on GitHub · 2026-11-26 12:23 UTC · original
RX 6900 XT (RDNA 2): Lab 62 crash bisected to
a5f5a75, plus what helps on this cardMachine: RX 6900 XT 16 GB (RDNA 2), Ryzen 5 3600, 32 GB RAM, Windows 10, B450 (PCIe 3.0, no Resizable BAR), Adrenalin 32.0.21045.29003, Agility SDK 1.620.2,
VICTORY_RELAY=0(RELAY=1/2 always loses the device on this card).1. Lab 62 loses the device on RDNA 2: bisected to
a5f5a7574a7e38) loses the device 25–72 s after start, still in the intro. The D3D12 debug layer reportsDXGI_ERROR_DEVICE_RESET: "...unreasonable amount of time to execute a command on a different Device Context... The current Device Context was NOT executing commands". DRED breadcrumbs are empty, and the last list is different each time (a compute dispatch once, a texture upload another time).4f8f16breaches the world (11k+ draws, no reset).a5f5a75("Neptune 2026-11-25m source: lighter submission thread") is the first bad commit: device reset 25 s in, still in the intro.DYNAMIC_SLOTS, the texture cap,CLAMP_AFTER_WRITER,LIBRARY_LOCK,PIPELINES_FIRST,SHADER_LOOP_LIMIT, Series S vs X.VICTORY_AHEAD_FIRST=0,VICTORY_CARD_FLAGGED=0andVICTORY_PASSES_AHEAD=0.play.ps1settings (Series X, RELAY=0), it reaches the world and stays stable, but runs at only 0.9 fps: the heap passes take 740–1020 ms per frame on the submitting thread, with about 176 ms GPU time.a5f5a75run work on the card from a second path, and that path hangs on RDNA 2. A per-vendor or per-architecture default for those three switches would probably be enough.2. What helps on RDNA 2 (avatarmanz main 0dec5dc, RELAY=0, first world area)
WIDE_MERGE=1VICTORY_OUTPUT=1920x1080RENDER_SCALE=0.5PORT_CONSTANTS=1,PORT_CBV=1fxceless f6a09d3 is slower on this card: 1.3–1.5 fps, with the GPU at 320–367 ms.
Recommendation for RDNA 2 today: avatarmanz main with
RELAY=0,WIDE_MERGE=1andVICTORY_OUTPUT=1920x1080.3. Relay on RDNA 2
RELAY=1/2always loses the device within seconds of entering the world (0x887A0007, empty DRED). Changes that did not help:RELAY_COPY=0, keeping freed windows, skipping pipelines,TEXTURE_NO_WAIT=0withSHOW_AFTER=0andWIDE_BACK=0, ports of fxceless #272 and #1033, Agility 614 vs 620, the debug layer.Happy to test any RDNA 2 fix for
a5f5a75, following the shared measurement method.@PastiiJay on GitHub · 2026-11-26 12:25 UTC · original
Thank you @BlackBu7let, this is an outstanding report: a clean bisect to
a5f5a75, the exact switches that move the reset, and a measured table on top. Exactly what we needed for RDNA 2.We'll do what you suggest: make
VICTORY_AHEAD_FIRST,VICTORY_CARD_FLAGGEDandVICTORY_PASSES_AHEADdefault to 0 on RDNA 2 (picked from the adapter at start), so beta-2 reaches the world on your card without hand-set switches, and keep them on for RDNA 4 where they hold. The 0.9 fps with all three off tells us the ahead path is also where the RDNA 2 speed is, so it's worth finding what hangs rather than just switching it off; we'll look at the second submission path froma5f5a75.Your
VICTORY_OUTPUT=1920x1080result (2.6 → 3.4–3.6 fps) is interesting for us too. Could you run one session with the shared method (tools/fps-session.py) once the RDNA 2 default lands? We'll ping you here when it's up.@BlackBu7let on GitHub · 2026-11-26 22:52 UTC · original
Lab 63.2 (
54a9d35) on RX 6900 XT: the RDNA 2 defaults hold, and a relay fix from another fork looks relevant1. RDNA 2 defaults (
5337516), as requested. RX 6900 XT 16 GB, Ryzen 5 3600, Win10, Series X, Agility 620, default settings otherwise. No device loss in 15 min (before: reset 25–72 s in).tools/fps-session.py, one run including the warm-up with a fresh cache (pipelines were still being made for the first minutes):[KLBF benchmark] Lab 63.2 beta-2 54a9d35 | RX 6900 XT 16 GB | Ryzen 5 3600 | 15.0 min | avg 1.9 fps, median 2.5, 1% low 0.0, peak 3.6 | 136 samples | log d1c6746c57bb582b | check okThank you for the quick default.
2. A fix for relay on RDNA 2 exists in another fork.
kyokyotosh/VIctory-6700XT(f173347,018d372,e3c0703,63a773e, see itsFINDINGS-6700XT.md) found with a GPU ETW trace that RELAY=2 loses the device because the ~2 GiB aperture segment fills up with command lists kept for send-ahead. Its fix recycles landed lists at once, pools the prelude lists and backs off above 80 % of the segment. On our RX 6900 XT (its build297436b, same settings) RELAY=2 ran 9.5+ min and several runs without a device loss, where relay 1/2 always reset before.3. It is not free yet. Same save, same place (next to water), 1080p, 4–5 min each, one run per row, medians vary a lot between runs:
TEXTURE_NO_WAIT=0INDIRECT_WINDOW=0,INDIRECT_BATCH=0RELAY_COPY=0,INDIRECT_WIDE=0With relay on we get 7–8 fps at times, but drops to 1–2 fps and texture glitches at the same spot. Standing still there are few glitches. Relay off is steady with none. Only the relay runs show indirect draws in this scene, so we suspect the relay path (water?), but we did not isolate it. None of the switches above changed it.
Happy to test a combination of the relay-memory fix with your RDNA 2 defaults, or any switch you want tried at that spot.
@PastiiJay on GitHub · 2026-11-26 22:56 UTC · original
Thanks @BlackBu7let, 15 minutes with no device loss on the RDNA 2 defaults is exactly what we hoped to see, and the table makes the relay trade-off very clear. The kyokyotosh finding (send-ahead lists filling the ~2 GiB aperture segment) is a strong lead, and we'll look at porting those four commits. Next step on your side: one RELAY=2 run with the fix at that water spot, and attach the console around the first glitch. If the indirect draws line up with the glitches there, the water path is our suspect.
@PastiiJay on GitHub · 2026-11-26 23:03 UTC · original
New AMD beta is up on the
beta-amdbranch: a different base, Series X by default, and the sea fixed. If you have a moment, could you try it at the same water spot and tell us whether the device loss and the glitches are still there? A BM-v1 run is a bonus.Build once with
cargo build --profile diag -p victory --features diagnostics --locked, then start with.\play.ps1 -Game <your dump folder>(see the branch README).Honest note: this base hasn't been tested on RX 6000 (RDNA 2) yet, so your run would be the first one.
@BlackBu7let on GitHub · 2026-11-26 23:47 UTC · original
beta-amd(2177f15) on RX 6900 XT (RDNA 2): RELAY=2 holds for 10+ min with a warm cache, water and no glitches at our spotAs asked, we ran
beta-amdat the same water spot. RX 6900 XT 16 GB, Ryzen 5 3600, Win10, driver 32.0.21045.29003, Series X,play.ps1unmodified (it setsVICTORY_RELAY=2explicitly), own cache and data folders. Built withcargo build --profile diag -p victory --features diagnostics --lockedplus two local additions needed on Win10: the Agility 620 export andVICTORY_STEP_OVER=63966f,5149aec(the title's two pool-allocation breakpoints). Same save each time (the second character's house),tools/fps-session.pyon the log, world samples only:0x887A0005, then0x887A0007, "no host list for a state prelude" while the pipeline library was making pipelines; one make returned0x80070057)For comparison at the same place:
0dec5dc(avatarmanz, RELAY=0, 1080p) 3.2 median; kyokyotosh's relay fix on that base (RELAY=2) 3.9 median with texture glitches at the water.So the device loss we reported does not appear here once the cache is warm. We have not repeated a cold start with RELAY=2 to see if it is the cache or luck; the one cold run lost the device during pipeline building. Happy to repeat that, run the BM-v1 test next, or try any switch you want.
@BlackBu7let on GitHub · 2026-11-27 00:05 UTC · original
Follow-up: cold start with RELAY=2 also holds, but water is wrong on a cold cache
We repeated the
beta-amd(2177f15) RELAY=2 run with a completely empty cache, same save and spot. This time there was no device loss in 15.5 min of samples (no0x887A…), median 6.7 fps, 5 % low 3.8, 7,100–12,300 draws/frame. So the one earlier cold run that lost the device was not simply "cold cache"; it may have been a one-off (n=1 each).Difference we see: with the cold cache, water is drawn the whole time but its height map looks very low (the water sits far below where it should), and about 220–570 draws/frame stay "dropped without a host pipeline" with nothing being made. We have not compared that number with the warm run, so we can't say yet whether it is the water. Logs available if useful. Next we can run BM-v1 if you still want it.