After the start screen: 1841 draws/frame but a frozen frame — captured frames show the title's own dark background, not a black screen #784
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#784
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?
@bittertea0323 on GitHub · 2026-11-24 10:38 UTC · original
After the start screen: 1841 draws/frame but a frozen frame — captured frames show it is the title's own dark background, not a black screen
AI-assisted: yes
Kind: frame-capture evidence + the state sequence. No game data.
Environment
Windows 10 22H2 UBR 3393 (KB5029331) · RTX 4070 SUPER 12 GB · Ryzen 7 7800X3D · VIctory
main@
8e79c80+ #729's two commits (Agility exports, keyboard stand-in) · diag build(
--profile diag --features diagnostics) · Agility core 1.620.2 indiag\D3D12\.The sequence measured
What the captured frames prove
VICTORY_CAPTURE+VICTORY_CAPTURE_FRAMES=600,900,1200, 1920x1080 PNGs, sampled grid(80x45 points), top colors:
Three things follow:
0x2C2020-family dark backgrounds are the title's own UI colour;this one (
0x20202C) matches the account screen exactly.title keeps presenting at 30 fps.
presented content that stops changing.
Likely cause on this host
During the same load, 27 pipelines are refused, split as:
A loading screen whose progress text/bar is drawn by one of the dropped shaders would render exactly
this: the clear colour, a couple of surviving UI glyphs, and nothing moving — while the title keeps
presenting and the music keeps playing.
Request: if the loading UI is what stalls, the mesh/vertex translation failures are the thing to
chase (#156, #468 track the same classes), not the presentation path.
@bittertea0323 on GitHub · 2026-11-24 10:39 UTC · original
Translation-failure breakdown from the same run (for prioritisation)
Every
shader does not translatein this run, grouped by the converter's own message:Notes on what each would unlock, from the shader hashes they come from:
descriptor base is computed into an SGPR instead of arriving as a root parameter. Supporting
one level of SGPR-indirect descriptor base would clear the largest group at once.
value as plain data. Likely a single lowering rule each.
Needs the DXIL side to carry a dynamic stride (or clamp to a documented set).
image_atomic_*on 64-bit types.Comma-separated hashes are available in the log if useful; nothing game-specific is quoted here.
@bittertea0323 on GitHub · 2026-11-24 11:22 UTC · original
Series S mode is the safe way to run this title on a 32 GB machine (memory comparison)
Practical follow-up to #784: on this host, Series X mode drives
victory.exeto 13.2 GB RSS andthe machine becomes unusable (a watchdog had to kill it at 13.2 GB; a full system wedge followed).
Series S mode is four times lighter and stays well clear of trouble.
Measured, same binary (latest
main+ #729 exports), same titleSeries S also reaches the video cutscene with the same two texture allocation failures, at 1280-wide
instead of 2560-wide, so it does not sidestep the format problem (#797) — it only removes the memory
hazard.
Two notes for the record
session used, there is only ~17 GB of headroom, so a title process at 13 GB is one allocation
spike away from freezing the desktop. Anyone testing the world on 32 GB should use
--console series-sunless they want to lose the machine.looks like a crash in the log but is the title-routine suspend timing out. Worth wording
distinctly in the log so testers do not report it as a 0xC0000005.
Host: Windows 10 22H2 UBR 3393, RTX 4070 SUPER 12 GB, Ryzen 7 7800X3D, 31.2 GB RAM.
@bittertea0323 on GitHub · 2026-11-24 11:29 UTC · original
Copy-cost diagnosis: write-watch works (0 fallbacks), the cost is page faults, not bulk copying
Follow-up to #784's perf note. I suspected the 130-250 MB/frame copies were a write-watch failure
falling back to whole-buffer copies. That is not what happens. Measured with the diagnostics build
(
copies per framein the log):What this says
0.0 fallbacks— the write-watch/guard path is doing its job; nothing degrades to a whole-copy.2.6 MB checked, 2.5 MB unchanged— 96% of the watched pages are correctly skipped. Themechanism is efficient at the page level.
8748 page faultsin one frame (356 in a lighter one) — this is the actual expense. Each faultflips page permissions and re-checks; at ~5 us each, 8748 faults ≈ 40 ms before any copying
happens. In the scene the frame showed
copies 342 ms / 253.6 MB, which is consistent with thefault cost plus genuinely-dirty pages.
So the optimisation target is not the watcher
The scene's 253.6 MB/frame is real dirty data (the title writes that much), and the overhead on
top is the fault storm. Two directions worth measuring, both cheaper than the alternatives:
is flipped page by page, batching the permission changes (or using
VirtualProtecton the wholespan once, then hashing the pages) should remove most of the 8748.
shadow.rsalready notes this("a GPU-side dirty mask would save that if big ranges make it slow"). For the scene the ranges are
big; a single 64 KiB-granular dirty map filled by an upload-side hash may beat 8 k faults.
Honest limitation
These numbers are the menu stage (9.4 MB/frame, ~2-8 k faults). I did not manage to capture
copies per framefor the 1841-draw scene in the same run — the scene reaches 253 MB/frame and theprocess was stopped for memory safety (13.2 GB RSS, see my #784 note). Anyone with more headroom
should capture the same line during world load; that number decides which of the two directions above
is the right one.
Host: Windows 10 22H2 UBR 3393, RTX 4070 SUPER 12 GB, diag build, Agility 1.620.2.
@bittertea0323 on GitHub · 2026-11-24 11:40 UTC · original
Correcting my earlier reading with the engine-breakdown numbers.
nvidia-smiseparates "any engine busy"from the memory controller, and the app's own GPU time tells the same story:
and per frame at the menu:
30.0 fps, 33.3 ms/frame (... 2.2 on the GPU ...), 12 draws/frame.So at the menu the GPU spends 2.2 ms of a 33.3 ms frame (6%) — it is nearly idle, which is what a
task-manager style view shows as "GPU not working". That is not the problem at this stage.
The problem is the other number: VRAM reaches 11262 MiB of 12282 MiB (92-95%) while the menu is
still up. Once it is that full the driver starts evicting, GPU utilisation drops and the frame rate
collapses — which is what makes it look like the GPU stopped.
For contrast, the scene-stage figure measured earlier on this host was
198.4 on the GPUper frame,so the GPU is not under-utilised in the world either; it simply cannot keep enough resident.
What this changes
The ceiling to attack is residency, not shading throughput:
MicrosoftGame.Config, which the console builddoes have) would let the title trim instead of thrashing;
separate limits hit at once.
@Olliee96 on GitHub · 2026-11-24 18:13 UTC · original
The SGPR spill-table failure is already addressed by PR #302, “Shaders: read root arguments the console spills to memory”. It directly targets the reported an address in an SGPR that is no root parameter error.
@Marvisak on GitHub · 2026-11-25 03:52 UTC · original · edited 2026-11-26 00:47 UTC
Automated triage for the maintainers.
Thanks for the captures. They show the frame really is static, not black. The run (RTX 4070 SUPER, Windows 10 22H2 with an app-local Agility runtime,
8e79c80+ #729, diag build) drops draws of mesh, vertex and compute pipelines that do not translate, and some compute pipelines are refused with0x80070057. That is the NVIDIA world-load failure tracked in #71, the oldest complete report, with the refused compute pipelines covered in #468. Please follow it there. The memory notes match what #471 tracks (commit limit during world load). If you post again, please add the NVIDIA driver version and say whether currentmain(63bcca4) still stops at the same frame.Black opening cutscene on an RTX 3060 (Olliee96, in Portuguese), latest findings:
X=0every captured frame, although the G-buffer and depth are filled. The count is reset each frame and, of all dropped commands checked, only one compute shader covers it: a wave64 classifier-like shader (atomicumax/addwriting group counts) that is dropped about 6 times per frame because its translation fails for a lane reading the other half of a wave64 on a 32-lane host. Not yet confirmed that its descriptors point at the count.crates/victory-shaderon63bcca4, so please say which commit the run used and paste the exact log line.A Ryzen 5 7530U (integrated Radeon) user sees the same black opening cutscene with audio. That is a different GPU vendor, so please open a separate run report with the VIctory commit, GPU driver and Windows version, how far it gets, and the error lines from the log or
crashes.log, rather than adding it here.Generated by Claude Code
@109User109 on GitHub · 2026-11-25 20:24 UTC · original
I'm experiencing something similar on my Ryzen 5 7530U with integrated AMD Radeon graphics.
I can hear Jason and Lucia arguing during the opening cutscene, but the screen is completely black and the FPS counter stays at 0.
Not sure if it's the same underlying issue, though. Has anyone found a workaround yet?
@Olliee96 on GitHub · 2026-11-25 20:30 UTC · original
Pessoal, avancei na investigação da tela preta na intro do GTA VI pelo VIctory, na RTX 3060. Consegui ver a rua da cena do Jason em uma textura intermediária, enquanto o quadro que chega à tela continua preto. Dá para reconhecer os postes, os semáforos, os cones e até os fios. Isso ajudou a localizar melhor o problema, mas ainda estou investigando a causa.
Comecei olhando o desempenho porque, quando entra a cena do Jason roubando o carro, o contador chega a marcar 0–1 FPS e só aparecem os banners e créditos. Minha primeira impressão era que o jogo tinha parado de desenhar o mundo. A captura mostrou que a GPU continua recebendo trabalho e chega a produzir parte da cena 3D. O que observei até agora é que a queda de FPS coincide com a tela preta. Ainda não consegui demonstrar que uma coisa causa a outra. Os créditos parecem ser compostos em uma camada 2D separada, o que explicaria por que continuam visíveis.
Para quem está depurando o mesmo trecho, usei o primeiro quadro com pelo menos 500 draws como referência, porque a numeração muda entre as rodadas. Capturei 80 quadros depois, no quadro 2258 dessa execução. Nas texturas escritas pelo compute
f0c91b4d2578f5bf, a geometria da rua está visível. Uma saída do34fb51b8a0312e82também mostra as normais da cena, que indicam a orientação das superfícies. Já várias texturas posteriores que estou rastreando aparecem pretas, assim como a imagem final.Agora estou seguindo o caminho da geometria até a cor que chega à tela. Nesse mesmo quadro, quatro shaders de redução wave64 tiveram execuções descartadas. Só o
660814153af43185apareceu 104 vezes. Também houve recusas do driver para o pipelinecaf96a3229145fa6. Uma hipótese é que algum desses passes deveria produzir um valor usado na iluminação ou na exposição. Para testar isso, estou cruzando os buffers que cada passe descartado deveria preencher com os que o passe de cor realmente lê.Estou mais perto de identificar onde a cena fica preta. A próxima confirmação é apontar um recurso específico, mostrar qual passe deveria preenchê-lo e verificar se, ao corrigir esse passe, a cor da cena volta.
@Olliee96 on GitHub · 2026-11-25 20:31 UTC · original
Os dispatches descartados não aparecem no trace porque não têm pipeline no host, então estou registrando os descritores de usuário do console no ponto do descarte para cruzar com os passes pretos.
Compilei o diagnóstico novo e estou localizando o executável gerado para rodar o trace.
Saiu a primeira leva do trace. Já tenho os bindings de duas das reduções descartadas. Agora vou ver o que os passes que saem pretos leem.
O limite do log foi gasto logo no início da cena, com os próprios descartes. Vou limitar por shader e só começar a contar a partir de N quadros depois do início da cena.
Estou cruzando os endereços que as reduções descartadas escrevem com os que os passes pretos leem. Primeiro preciso entender o formato das views das texturas no trace.
O cruzamento por endereço não mostrou dependência real, então não conto como prova. A pista melhor é o passe
34fb51b8, que lê uma textura 1×1 com cara de valor de exposição; vou ver quem escreve nela.Encontrei a causa: a textura 1×1 RGBA32F que alterna entre dois endereços a cada quadro é lida pelos quatro passes que ficam pretos. Agora vou verificar o valor numérico dela.
Tiny targets' raw values are logged. Let me read them from the world run log.
Values are on continuation lines; I'll pull them with context.
Tracking down who writes the 1×1 texture the scene passes read (likely exposure). I've already captured the eight candidates; now I'm cross-checking their outputs.
Nenhum dos 8 shaders rastreados escreve a textura de exposição que a cena lê, então o escritor dela continua desconhecido. Rodei o trace3 (
night-trace3-20261125-171721, início do mundo no quadro 2734, rastreado a partir de mundo+78).A cadeia de luminância (todos executaram):
fc377576escreve três texturas 2×1 f2 (d69490000,d69450000,d694b0000).92298455lê essas três e escreve uma 5×1 (d694c0000).b0095eb5lê e reescreved69450000e duas texturas 2×2.e622b718lê a 5×1, escreve uma 1×1 f2 (d694f0000) e um buffer de 16 bytes com[0.1, 0.2, -3.3219, 1.0](-3.32 é log2(0.1), cara de parâmetros de exposição).Valores do quadro 2258 (mundo+80) no world run:
e622b718: 1e-6 nos quatro canais.fc377576: entre 8e-7 e 1e-6, e uma delas toda zero.92298455: valor máximo 0.00156.Isso é o que se espera de uma luminância medida numa cena preta, com um piso de 1e-6. Os dados indicam que essa cadeia é consequência do preto, e não a causa. Ainda não está provado.
O que fica em aberto:
34fb51b8lê a 1×1 emd695c0000/d695d0000, alternando a cada quadro. Nenhum dos 8 shaders rastreados escreve nesses endereços. Pode ser uma cópia dad694f0000, um shader fora da lista ou um dos descartados.34992f2b,71883e40edf11dcd0. O trace3 não incluiu esses três.d695c0000.Por isso ainda não fiz o replay com valor neutro. Sem saber quem escreve a textura e qual valor exato o consumidor lê, ele não provaria a dependência.
Próximo passo: acrescentar um
VICTORY_TRACE_MEM=0xd695c0000,0xd695d0000que registre qualquer dispatch, draw, cópia ou comando descartado que tenha esses endereços como destino. Com isso saem o escritor e o valor bruto lido pelo34fb51b8. Se for 1e-6 ou zero e controlar a cor, faço o replay só com esse valor trocado por um neutro. Se não for, volto às saídas f42 pretas do34fb51b8e aos descartados66081415ecaf96a32, que ainda não apareceram em nenhuma janela.Nada foi commitado e o patch 1 continua separado.
@Olliee96 on GitHub · 2026-11-25 22:17 UTC · original
O runner já aperta Enter sozinho (
VICTORY_KEYS: Enter aos 45, 60, 75, 90 e 105 s). Mesmo assim, nesta rodada o consumo do2dc364dfnão apareceu, e houve 1 descarte cobrindo oX. Vejo os dois.Apareceu um candidato concreto:
8dd8d739, dispatch 257×1×1 descartado (sem pipeline no host), e uma faixa dele cobre oX. Vejo qual slot e qual offset.O descritor aparece de novo na janela de 8 entradas, então vou verificar se o shader o usa; o caso importa porque o shader nunca roda, com cerca de 6 descartes por quadro e sem pipeline no host. Vou desmontá-lo.
Achei a peça que faltava:
8dd8d739parece um classificador, e a tradução dele falha com "a lane of the other half of a wave64 on a 32-lane host", o mesmo problema de wave64 levantado no início. Vou conferir se a tabela usada no atômico aponta para o registro doX.Ele aponta
s5como a segunda tabela (root1, 915795), com os atômicos nos descritores 915799 e 915801. Vou checar para onde esses índices apontam.Você pediu um resumo, então paro aqui. A próxima rodada é curta e só confirma os descritores 915799/915801 (o log desta cortou o texto).
Onde está a tela preta
Na intro, a imagem 3D sai preta porque a passada de iluminação nunca roda. A cadeia, de trás para frente:
34fb51b8(o passe que junta a cor) recebe a cor já zerada. O valor de exposição é normal (0,0221), mas zero dividido por qualquer coisa continua zero. A pista da exposição está descartada.2dc364dfe940c2635. As entradas deles têm dados: G-buffer e profundidade estão preenchidos, então a geometria está sendo desenhada. Mesmo assim eles executam zero grupos, porque a contagem que recebem éX=0.3e7c51f5zera essa contagem a cada quadro, o que é normal. Algum passe deveria preenchê-la depois.512416d9,91b10a73,b83629b9e três indiretos) pela desmontagem. Nenhum deles toca nessa contagem.8dd8d739.umax/addem registros de 32 bytes, gravando uma contagem de grupos.Se isso se confirmar, o motivo da tela preta seria: um shader wave64 que o emulador não consegue traduzir deixa de rodar, a contagem fica 0, a iluminação não roda e a cena sai preta.
O que já foi testado no render
[0,1,1]em todos os quadros capturados.Xentre o reset e o consumo, incluindo comandos descartados. Censo desta rodada: 76.216 descartes. Desses, 20.000 tiveram as faixas checadas, porque o log tem limite. Só um shader descartado cobre oX: o8dd8d739.O que falta
8dd8d739apontam para os registros doX. É uma rodada.Xfica maior que zero, que a cor aparece na saída do2dc364dfe que ela chega à tela.Você ainda não viu mudança porque até agora tudo foi diagnóstico. Nenhuma correção entrou no render.
Sobre o Enter: o
run-cap.ps1já aperta Enter sozinho aos 45, 60, 75, 90 e 105 s, e as rodadas chegaram à cena. Mas nesta última o consumo do2dc364dfnão apareceu no log, então pode ter faltado um Enter para chegar à cena. Se a forma de depurar que você quis dizer é outra, me diga qual é e eu uso.Nada foi commitado. As mudanças estão em
draw.rs,host.rselist.rs, só sob a featurediagnostics.