beta-amd v12 on Linux/Proton, RX 9070 XT: 6 ray-traced shadow pipelines never finish compiling, frames stuck at ~550 ms; faces wrong, scene very dark #120
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 PastiiJay/klbf-lab. Originally posted by Exorion1er on 2026-11-27T10:57:10Z.
Summary
Test run of
beta-amdat84a4f67("AMD beta v12") under Proton, code unmodified. It boots and plays the opening cutscene. It runs at about 1.8 fps (one frame every ~550 ms) the whole time and does not get better. Faces are deformed, the scene is so dark it is barely visible, and reflections look right.The log points at one cause for most of the frame time. Six ray-traced shadow compute pipelines stay "compiling" for the whole session (192 s and counting when I stopped), and every frame seems to wait out
VICTORY_PIPELINE_WAIT_MS=500for them before dropping the draws.Linux/Proton isn't a target of this build, so take it as a data point.
System and build
VKD3D_CONFIG=descriptor_heap, Microsoftd3dcompiler_47.dllbesidevictory.exebeta-amd84a4f67,cargo build --locked --profile diag -p victory --features diagnostics, cross-built forx86_64-pc-windows-msvc(lld-link + xwin), no other changesplay.ps1's$setexported as-is by a shell wrapper, plusVICTORY_PROBE_RAYS=1when ray tracing is off. Shaders were translated ahead withvictory.exe shaders shaders.rpf(25,689 in the cache, 200 do not translate, 69 s)Runs
PROBE_RAYS=1)VICTORY_BVH_BUILDER=1)KLBF_AMBIENT_EST=1, local RADV fix, LD_PRELOAD shim for Wine section memoryThe stuck pipelines (run 2, after 3 min in the cutscene)
Run 1 (ray tracing off) had three of the same programs stuck for 98 s (LaserLightShadowRaytracing and the two DistantShadowTrace TemporalUpsample variants).
Frame line from the same moment:
Only about 41 ms of the 552 is preparing work. The rest fits one 500 ms pipeline wait per frame. Fps over the run: 30 in menus and videos, then 1.7–2.6 from the first 3D frame on.
Notes
v_readlane) inside branches: the pipeline never finishes building. Mirroring the read-lane VGPRs through LDS in the translator got all six to build there. I haven't checked this here, so it's a lead only. On Windows the native driver compiles the DXIL, so this would be Linux-only.Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-27T11:27:11Z.
Thanks @Exorion1er, this is a precise report: the six ray-traced shadow pipelines still "compiling" after 192 s, with the 500 ms wait on every frame, is exactly what we needed to see. Could you attach the full console log from run 2, with the
KLBF_AMBIENT_ESTline included?Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-27T11:30:22Z.
thanks, that log nailed it: a pipeline that never gets made took the whole 500 ms wait budget of every frame. A fix is written (a pipeline is waited for 5 s in all, then its draws are dropped until it's ready) and goes into the next beta. Meanwhile
-More @{ VICTORY_PIPELINE_WAIT_MS = '0' }should give you the frame rate back.Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-27T13:01:01Z.
Thanks @Exorion1er, you're credited in the Quick fixes table in the README.
Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-27T13:20:00Z.
Thanks for the report. One thing to check first: the game needs its shaders prepared before the first start. Without that step they are translated during play, which can cause missing objects, wrong faces and stutter.
Could you run
.\scripts\play-scarlett.ps1 -OnlyPrecompileonce, wait for it to finish, then start the game normally? Also check that-NoPrecompileis not in your launch settings.If it still happens after that, please post the output of the run so we can see where it goes wrong.
Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-27T13:22:57Z.
The fix is out on
stableandbeta-amd(4c79ac5): a pipeline that never gets made is now waited for 5 s in all, then its draws are skipped until it's ready, instead of 500 ms of every frame. Played on Windows with nothing missing from the picture. Could you pull and run once on Proton without theVICTORY_PIPELINE_WAIT_MS = '0'workaround and tell us the frame rate?Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-27T13:28:20Z.
@Exorion1er New stable v12 is up (
stablebranch,4c79ac5): bench fix for slower cards (the opening fade no longer counts as black frames), Linux fix for the 2 fps stall, quick-fix table in the README. If you tested before, please re-test, and before any bench or comparison: start the game once and let it translate the shaders (a few minutes, automatic), then play about 10 minutes so the effects are built. Otherwise they compile during the run and the figures aren't comparable. Results with the bench card on github.com/PastiiJay/klbf-lab 🙏Imported from PastiiJay/klbf-lab. Originally posted by HandshakeHackin on 2026-11-27T13:37:39Z.
I ran the unmodified wait path from stable
4c79ac5on Windows with one pipeline deliberately left unresolved for 12 consecutive frames. At defaults, the cumulative charge reached 5,000 ms on frame 10 and stayed at 5,000 on frames 11 and 12. The zero-frame-wait workaround charged 0 on all 12. With the lifetime cap disabled and a 10 ms frame budget it charged 10 ms each frame.One nuance for custom settings: a 3 ms lifetime cap with a 100 ms frame budget charged 100 ms once, then stopped. The cap is checked before the wait, so the last wait can overshoot. Four isolated Windows test runs and per-frame counters. This verifies the wait logic; the RX 9070 XT Proton retest is still needed for an in-game FPS figure.
Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-27T14:16:52Z.
Thanks @HandshakeHackin, frame-by-frame numbers like these make the wait logic easy to trust. @Exorion1er, the last missing piece is yours: one run on stable
4c79ac5under Proton, to see whether the frame rate recovers once those six pipelines stop eating the budget.Imported from PastiiJay/klbf-lab. Originally posted by diafebus on 2026-11-27T22:23:37Z.
RX 6950 XT on Proton renders 3D with the Belobug helper shader changes
On Linux with an RX 6950 XT (RDNA2), RADV NAVI21, and GE-Proton 11-14, our initial KLBF v12 runs showed menus and subtitles while the 3D scene stayed black. A local Belobug shader build displayed 3D. We ported its helper shader changes to KLBF v12-stable (
4c79ac5272), which then displayed outdoor geometry, characters, and the prison interior.Changes to reproduce
We observed this on one RDNA2 system with the combined patch and launch configuration. We did not isolate which changes are required, and our earlier KLBF runs did not use the same DXGI override.
Observed result
Patched KLBF showed a third person character, trees, grass and distant lights outdoors. The overlay showed 1.5 FPS in the captured outdoor frame and 5.9 FPS in a captured prison window frame. The tester briefly saw 16 FPS. These are snapshots. Lucia's eyes and mouth rendered while the facial surface was missing, and some scenes remained very dark.
Local KLBF candidate executable SHA-256
253a71856840f010469aa83038e4db769a3a31c743773f2921e37b2857c6802a
Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-27T22:29:16Z.
Thanks, getting 3D on RDNA 2 under Proton is a real step. The host-side root signature serialization is the part we want to look at first. Could you push your patched branch (on top of
4c79ac5) to a fork and link it here? That way we can test each change on its own and credit you for the ones that matter.Imported from PastiiJay/klbf-lab. Originally posted by diafebus on 2026-11-28T09:48:44Z.
Here is the source branch for the first KLBF build that rendered 3D in our RX 6950 XT run: diff against
4c79ac5· branch. It contains the Belobug-derived rendering port before our later performance and texture experiments.For isolation, start with
crates/victory-gpu/src/rootstring.rsand the call sites that serialize the helper root signatures on the host. An earlier helper diagnostic returnedE_FAILwhen creating the signature from the Wine-compiled blob, while host serialization succeeded. The branch also changes helper HLSL resource access, including the indirect clamp and card compare. A useful comparison is base → host serialization only → complete branch, with the same launch environment and scene at each step. Check helper initialization and whether geometry appears before comparing FPS.Our successful configuration was RX 6950 XT / RADV NAVI21 / GE-Proton 11-14 with KLBF's bundled Agility SDK,
VKD3D_CONFIG=descriptor_heap, feature level 12_1, andWINEDLLOVERRIDES="d3d12=n,b;d3d12core=n,b;dxgi=n,b;d3dcompiler_47=n,b". Outdoor geometry and characters and the prison interior appeared with the combined port. Some scenes were still dark and Lucia's facial surface was missing. The earlier black-world run used a different DXGI override, so serialization alone and applicability across RDNA2 remain open.Imported from PastiiJay/klbf-lab. Originally posted by diafebus on 2026-11-28T10:08:11Z.
The source branch is now available for review as PR #152 against stable: https://github.com/PastiiJay/klbf-lab/pull/152.
Imported from PastiiJay/klbf-lab. Originally posted by diafebus on 2026-11-28T10:09:04Z.
RDNA2 Proton source patch, part 1 of 2, against
4c79ac5. Save both diff blocks as patch files and apply them together withgit apply 1.patch 2.patch. The launch settings and evidence are in the reproduction note.Imported from PastiiJay/klbf-lab. Originally posted by diafebus on 2026-11-28T10:09:05Z.
RDNA2 Proton source patch, part 2 of 2, against
4c79ac5. Save both diff blocks as patch files and apply them together withgit apply 1.patch 2.patch. The launch settings and evidence are in the reproduction note.Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-28T13:38:26Z.
Thanks @diafebus, we have both patches and the branch from #152 and will test them on our side, with credit for whatever we take. If you still have the console log from that first run that drew the interior, attaching it here as a .txt would help us compare.
Imported from PastiiJay/klbf-lab. Originally posted by diafebus on 2026-11-28T19:28:01Z.
@PastiiJay I recovered renderer telemetry from two fresh reproductions on RX 6950 XT (RADV NAVI21, GE-Proton 11-14, descriptor_heap, feature level 12_1). The original run's saved console captured Proton startup only. These are new runs with KLBF tracing written directly to a file.
4c79ac5+ the published Wine rendering port + HandshakeHackin's sampler default and fixture corrections. In “Nine Months Ago,” most NPCs lacked skin, while the guard's face looked correct. Prison window walls took roughly 30–50 seconds to appear. The cell reached about 20 FPS. Daylight reached the interior through windows and doors. Reflections looked wrong and I couldn't confirm illumination from the ceiling fixtures.3f08d23withKLBF_PIPELINE_NOBLOCK=1. More NPCs had skin, but their faces were deformed like Lucia's. The guard still looked correct. Walls seemed to come in sooner on the first pass and movement felt more responsive. After restarting the mission the walls eventually returned, but the window glass was missing. There was no clear improvement in interior lighting.Selected console lines (the trailing heap/texture counters are omitted):
These are individual samples from a live comparison. The slow restart sample is dominated by reported preparation and copy time. I preserved the two full renderer logs locally (about 5.4 and 7.0 MiB) and can provide a specific interval or additional counters if useful.
Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-28T19:43:03Z.
thanks a lot for the two traced runs, very clear. the line that stands out is "dropped 374 without a host pipeline (3 being made)": those draws are skipped while their pipelines are still being built, which fits missing skin and late walls. could you do one run where you let Prepare shaders finish first (Settings), then send the same settled-cell line? if the dropped count goes near 0 and skins come back, we know where to look
Imported from PastiiJay/klbf-lab. Originally posted by diafebus on 2026-11-28T21:51:19Z.
@PastiiJay I ran both preparation steps under GE-Proton 11-14 on the RX 6950 XT / RADV:
victory shaderscompleted, thenvictory warmcompleted with 83,527 entries recorded as done and 33 marked bad in the pipeline book's warmup logs.Settled prison cell at 21:50:22 UTC, with inmates missing facial skin (eyes and mouths visible):
The earlier sample was 374 drops/frame, so the count did not go near zero in this sample and inmate facial skin was still missing. This run used our patched
stable-amdbuild at75022ba(v26.11.6), with the Wine helper port, sampler correction, and the shorter wait enabled. The 374-drop sample used the patched4c79ac5base, so the comparison does not isolate preparation alone.Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-28T22:39:36Z.
thanks diafebus, both steps finishing under GE-Proton with only 33 bad entries out of 83,527 is good news for RADV. the missing facial skin is a known bug we're working on, on Windows too. if you can, attach the run log of that session so we can compare it with ours
Imported from PastiiJay/klbf-lab. Originally posted by diafebus on 2026-11-29T01:07:55Z.
@PastiiJay Would two small GPU readback probes be useful for narrowing down the missing facial skin? Xbox2Windows documents a constant-buffer swap and a two-mip explicit LOD test. We could use that test design with synthetic resources through KLBF's own shader translation and descriptor binding paths:
On our RX 6950 XT / RADV / GE-Proton setup, one inmate's facial skin appeared when I approached and disappeared again when I backed away in VIctory-RDNA. That makes a distance-dependent mesh or material path worth checking. The mip probe would isolate one possible cause. These probes could run with synthetic assets and avoid another full playthrough. A passing result would narrow the search, but it wouldn't rule out geometry LOD, streaming, or a missing host pipeline.
Imported from PastiiJay/klbf-lab. Originally posted by HandshakeHackin on 2026-11-29T01:30:51Z.
@diafebus I ran both probes through KLBF's native compute-shader translator on Windows WARP. Each dispatch waits for the GPU fence before rewriting the same D3D12 descriptor slots. The output contains the constant-buffer marker followed by the red samples at explicit levels 0 and 1.
All three markers matched. With only the second mip exposed, a request for LOD 1 also clamped to that mip. The existing cube-gradient regression passed alongside it. This covers translated shader reads and a real D3D12 heap rewrite. The title's material/streaming path and RADV on the physical card are still open questions. Probe and harness changes · Windows readback log.
Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-29T08:25:11Z.
@diafebus good idea, and @HandshakeHackin thanks for running both probes: constant buffers and mip selection read back right, so two causes are off the list. skin that comes and goes with distance points more at streaming or level of detail, noted.
the v26.11.10 pre-release keeps pipelines from one run to the next under Proton. diafebus, could you attach a run log of a session on it in your GE-Proton setup?
Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-29T18:54:19Z.
Reposted from @diafebus (23:23) with the game names taken out. no worries, we just keep content and names from any game out of this repo, thanks for understanding!
RX 6950 XT on Proton renders 3D with the Belobug helper shader changes
On Linux with an RX 6950 XT (RDNA2), RADV NAVI21, and GE-Proton 11-14, our initial KLBF v12 runs showed menus and subtitles while the 3D scene stayed black. A local Belobug shader build displayed 3D. We ported its helper shader changes to KLBF v12-stable (
4c79ac5272), which then displayed outdoor geometry, characters, and the prison interior.Changes to reproduce
We observed this on one RDNA2 system with the combined patch and launch configuration. We did not isolate which changes are required, and our earlier KLBF runs did not use the same DXGI override.
Observed result
Patched KLBF showed a third person character, trees, grass and distant lights outdoors. The overlay showed 1.5 FPS in the captured outdoor frame and 5.9 FPS in a captured prison window frame. The tester briefly saw 16 FPS. These are snapshots. the first character's eyes and mouth rendered while the facial surface was missing, and some scenes remained very dark.
Local KLBF candidate executable SHA-256
253a71856840f010469aa83038e4db769a3a31c743773f2921e37b2857c6802a
Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-29T18:54:55Z.
Reposted from @diafebus (10:48) with the game names taken out. no worries, we just keep content and names from any game out of this repo, thanks for understanding!
Here is the source branch for the first KLBF build that rendered 3D in our RX 6950 XT run: diff against
4c79ac5· branch. It contains the Belobug-derived rendering port before our later performance and texture experiments.For isolation, start with
crates/victory-gpu/src/rootstring.rsand the call sites that serialize the helper root signatures on the host. An earlier helper diagnostic returnedE_FAILwhen creating the signature from the Wine-compiled blob, while host serialization succeeded. The branch also changes helper HLSL resource access, including the indirect clamp and card compare. A useful comparison is base → host serialization only → complete branch, with the same launch environment and scene at each step. Check helper initialization and whether geometry appears before comparing FPS.Our successful configuration was RX 6950 XT / RADV NAVI21 / GE-Proton 11-14 with KLBF's bundled Agility SDK,
VKD3D_CONFIG=descriptor_heap, feature level 12_1, andWINEDLLOVERRIDES="d3d12=n,b;d3d12core=n,b;dxgi=n,b;d3dcompiler_47=n,b". Outdoor geometry and characters and the prison interior appeared with the combined port. Some scenes were still dark and the first character's facial surface was missing. The earlier black-world run used a different DXGI override, so serialization alone and applicability across RDNA2 remain open.Imported from PastiiJay/klbf-lab. Originally posted by PastiiJay on 2026-11-29T18:55:16Z.
Reposted from @diafebus (20:28) with the game names taken out. no worries, we just keep content and names from any game out of this repo, thanks for understanding!
@PastiiJay I recovered renderer telemetry from two fresh reproductions on RX 6950 XT (RADV NAVI21, GE-Proton 11-14, descriptor_heap, feature level 12_1). The original run's saved console captured Proton startup only. These are new runs with KLBF tracing written directly to a file.
4c79ac5+ the published Wine rendering port + HandshakeHackin's sampler default and fixture corrections. In “Nine Months Ago,” most NPCs lacked skin, while the guard's face looked correct. Prison window walls took roughly 30–50 seconds to appear. The cell reached about 20 FPS. Daylight reached the interior through windows and doors. Reflections looked wrong and I couldn't confirm illumination from the ceiling fixtures.3f08d23withKLBF_PIPELINE_NOBLOCK=1. More NPCs had skin, but their faces were deformed like the first character's. The guard still looked correct. Walls seemed to come in sooner on the first pass and movement felt more responsive. After restarting the mission the walls eventually returned, but the window glass was missing. There was no clear improvement in interior lighting.Selected console lines (the trailing heap/texture counters are omitted):
These are individual samples from a live comparison. The slow restart sample is dominated by reported preparation and copy time. I preserved the two full renderer logs locally (about 5.4 and 7.0 MiB) and can provide a specific interval or additional counters if useful.