RTX 4070 Ti SUPER: prologue color vs. same-frame depth, plus a mesh PSV validation fix #12
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork#12
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?
@Harveyweiii on GitHub · 2026-11-24 19:48 UTC · original
On an RTX 4070 Ti SUPER, the first playable interior renders a character, window mesh, bunk frames, and ceiling lights. When the character turns away from the window, much of the room becomes nearly black in the presented color. A depth target from that same frame still contains the character, bunks, and dividers.
Two paired captures, frames 2316 and 2396 (external visual report). Each row pairs the window output with a 1280 × 720 GPU depth readback from the same present. Grayscale is normalized per frame to show the geometry.
Build and scope. Windows, native D3D12, Series X profile, local release build with
diagnosticsbased on 578d459. The local changes include mesh-shader PSV metadata emission and optional frame diagnostics. The game reported a 1920 × 1080 display mode, while the host created a 3840 × 2160 presentation buffer. Captured scene draws also used a 2560 × 1440 viewport.A reproducible shader-validator difference. On the same three character pre-skin mesh shaders, the unmodified commit emitted DXIL for all three and created all three D3D12 pipelines, but the Windows SDK validator rejected their
Pipeline State Validationsections. Incrates/victory-shader/src/emit/container.rs, recording a separate semantic-name string offset for each mesh-signature occurrence, including repeatedTEXCOORDnames, changed the result to 3/3 validated and 3/3 pipelines created. Non-mesh signatures kept their existing string handling. We have not isolated a visual change caused by this patch alone.A timing sample. On a prior diagnostics run of the same local rendering baseline, after the pending pipeline count reached zero, the host reported 473.6 ms/frame: 175.4 ms preparing resources, 197.8 ms in the GPU section and 92.1 ms copying back, at 6,871 draws/frame. This is one instrumented sample, not a sustained FPS benchmark.
The paired captures narrow the dark-room problem for the pictured surfaces: geometry reaches depth even where its final color is very dark. We are tracing which color/lighting pass loses that contribution and which individual draws account for the remaining gaps.
@superboynick on GitHub · 2026-11-25 16:26 UTC · original
Independent reproduction of the same split on a different card, with numbers.
Machine: RTX 5070 Ti Laptop (12227 MiB, driver 617.14) plus the integrated GPU, Windows 11, complete archive set, no tuning switches, built from main at
0b0074ewith only the wave32 rescue of #988 on top.What I measured. One captured frame every few hundred presents, mean relative luminance 0.2126R + 0.7152G + 0.0722B sampled every 16 pixels, 8-bit sRGB:
account picker / legal screen mean 120 - 141 max 246-247 loading art mean 122 max 247 opening cutscene interior mean 2.5 max 162The cutscene frame is not empty. A character, a camera rig and interior geometry are all visible, and the subtitle overlay on that same frame peaks at 162 while the scene sits at roughly 1% of normal luminance. That matches your report: geometry present in depth, color nearly black.
One experiment that separates "not drawn" from "drawn too dark". A diagnostic-only CPU gamma of 2.2 applied to the backbuffer before present takes the same frame from mean 2.5 to mean 117, and the room becomes readable. So the pixels arrive, the intensity does not. That rules out a dropped draw for this frame and points at whatever produces the light values.
Things I checked that are not the cause here. Present does a CopyResource into an R8G8B8A8_UNORM swapchain with no tonemap and no sRGB-to-linear conversion anywhere in the path, and HDR is reported to the title as disabled. So the mismatch is upstream of presentation in this build, not a color-space conversion at present time.
One candidate worth your depth comparison. The host view heap settles at 1,000,000 views while the title asks for 1,245,184, and views past the cap are clamped to the null slot:
host view heap capped at 1000000; views past it read a null slot count=1245184If some lighting or exposure inputs land past that cap, they would read null and drag the result toward zero without removing geometry, which is the shape of what both of us see. I have not proven it: a CPU-side count of out-of-range indices is meaningless because the clamp happens in the shader, so a proper test needs GPU-side instrumentation. Worth comparing across cards - the same request count appeared in a report on an RTX 5060, so the number may be a property of the title rather than the hardware.
If helpful I can share the luminance sampling script and the exact capture schedule; they run on any build with frame capture compiled in.
@superboynick on GitHub · 2026-11-25 17:15 UTC · original
Two follow-ups from further runs, both with wall-clock captures so the samples line up across runs (frame-number captures mislead when frame rate differs).
1. Waiting policy is not the cause. Same build, same machine, same key schedule, captures at 45/70/95/120/145 s:
default waits 122.5 120.2 33.6 13.3 11.3 fps avg 13.5 SPLIT_WAITS=0 67.2 15.8 15.9 30.1 3.0 fps avg 9.5 CUT_WAITS=0Holding the waits makes it darker earlier and slower, so the "queues get ahead of the results and read stale values" explanation does not fit this symptom.
2. What does move the picture is the intensity mapping. Applying gamma 2.2 to the presented buffer takes the same cutscene frame from mean 2.5 to 117, with the room readable. Since present does a plain CopyResource into R8G8B8A8_UNORM with no conversion anywhere, the values arriving at the swapchain are simply far too low for a display-referred buffer.
So on this build the open question is not "is the scene drawn" nor "do we present too early", but "which stage is supposed to raise these values into display range, and why is it not doing so here". If your depth-vs-color captures show the same on the 4070 Ti SUPER, that stage is the place to look, and it would explain several black-screen reports at once.
No screenshots, dumps, disassembly or binary bytes; luminance aggregates and timing only. AI-assisted.
@superboynick on GitHub · 2026-11-25 18:09 UTC · original
Qualification to my two earlier comments, after capturing the sequence properly with wall-clock sampling.
I reported a cutscene frame at mean luminance 2.5 against 120-141 for menus and called it "roughly 1% of normal". Capturing the same stretch every three seconds gives:
58 s 116.1 loading art 61 s 120.2 loading art 64 s 0.0 transition, black 67 s 31.3 title card 70 s 35.5 title card 73 s 32.1 title cardThe 31-35 values are the "VICE CITY, TWO YEARS AGO" card, which is a dark slate by design and renders correctly, including its subtitle. So luminance alone does not separate "dark content" from "broken output", and my 2.5 figure was a single frame of a night interior that may simply be a night interior.
What survives from my earlier messages: gamma 2.2 raises that frame to 117 and makes the room readable, so the pixels are there with low values rather than absent. That is a statement about how the buffer looks after a nonlinear transform, not proof that the values are wrong.
What I would need to call it a bug is a reference: the same frame from a working implementation, or the exposure/tonemap stage's output. I do not have either. Your depth-versus-color comparison remains the stronger evidence on this thread, because it shows geometry that the color pass does not carry.
Apologies for the noise; I would rather narrow my claim than leave an overreach standing.
@superboynick on GitHub · 2026-11-25 18:23 UTC · original
Reproduced the geometry-versus-color split on a different card, and made it a capture option so anyone can do the same.
On an RTX 5070 Ti at the same stage: the depth image from a present shows a figure with visible arm and shoulder contours, interior surfaces and depth gradients; the color image from that same present is essentially black except for a subtitle and a faint red glow. Same split you documented on the 4070 Ti SUPER.
The way to get that pair is a stacked change in our fork:
VICTORY_CAPTURE_DEPTH=1writes<frame>-depth.pngnext to the color frame from the same present, normalized per frame across the finite depth range - deliberately the same convention as your paired captures, so the two are comparable. It sits on top of wall-clock capture scheduling, because frame-number scheduling does not line up across machines. Both are small, off by default: https://github.com/superboynick/victory-fork/pull/2One caution from doing this: luminance alone is not enough to call it a bug. The title card a few seconds earlier is a dark slate by design and reads 31-35 mean, so a low number on its own proves nothing. What is diagnostic is exactly what you did - geometry present in depth, absent in color - and that is now cheap to produce.
No screenshots or binary bytes in this message; the images stay local. AI-assisted.
@superboynick on GitHub · 2026-11-25 18:36 UTC · original
Cross-machine check on the swap chain configuration, hybrid versus discrete, since that difference is often blamed for flicker: both machines build the identical chain.
laptop (iGPU + RTX 5070 Ti) desktop (RTX 3080 Ti) SwapEffect FLIP_DISCARD FLIP_DISCARD BufferCount 2 2 Format / size 28 / 3840x2160 28 / 3840x2160 SwapChainFlags 0x0 (no tearing, no waitable) 0x0 (no tearing, no waitable) Present SyncInterval=0 Flags=0x0 SyncInterval=0 Flags=0x0So the chain itself does not distinguish the two machines. Two things the same log surfaced that might matter instead:
SetMaximumFrameLatencyis never called on either, so with two buffers and a present that never waits for vblank the pacing is whatever DXGI decides by default.The window is a plain HWND (
WS_EX_NOREDIRECTIONBITMAP=false, not layered), so frames go through DWM composition - which is where a flip chain can hand off to a multi-plane overlay and back on a hybrid machine.I have no display-side capture, so I cannot say which of those produces the flicker. What I can say is that the swap chain description is not the discriminator, and that both points above are now visible in the log for anyone who can record the screen.
The logging is in #1074 and works without any other switch beyond
VICTORY_LOG_PRESENT=1. AI-assisted.