[GH #143] [Performance/Rendering] Massive texture memory stalls (0.2 FPS) and repeating thumbnails on RTX 3080 #143
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 Zettrox/ztrx. Originally posted by cryptz1zz on 2026-11-25T14:16:34Z.
System Info
Description of the Bug
I'm experiencing extreme performance degradation (approx 0.2 FPS / 5582.4 ms/frame) during the Prologue.
Additionally, the rendering is completely broken in specific ways:
Log Analysis
I ran with
RUST_LOG=debug. The log indicates the GPU pipeline is severely stalled by texture memory management, dropping thousands of textures and marking slots as stale:The log also suggested:
(VICTORY_CARD_BUFFERS_MIN=1 would have the card look there)
However setting
VICTORY_CARD_BUFFERS_MIN=1andVICTORY_CARD_BUFFERS_MB=1024did not resolve the issue for me.Imported from Zettrox/ztrx. Originally posted by xiaotu030202 on 2026-11-25T14:39:43Z.
One thing in your report explains why the workaround did nothing, and it is not your fault:
VICTORY_CARD_BUFFERS_MINis not a variable this build reads. The name the log prints is:shadow.rsbuilds the hint from the variable it actually reads, so the message is right — butVICTORY_CARD_BUFFERS_MIN=1sets nothing, andVICTORY_CARD_BUFFERS_MB=1024on its own only raises the outer budget. That is very likely why neither had an effect.What each actually does (
shadow.rs:145-154):VICTORY_CARD_BUFFERS_MIN_MB1sends everything ≥ 1 MiB to the cardVICTORY_CARD_BUFFERS_MBSo the pair worth trying is exactly what the log suggests, with both names spelled in full:
Two more things that would make your next report much more useful, because the log is quieter than it looks:
The "no room" line prints only once.
draw.rs:1466is behind aonce!macro — onetracing::warn!for the whole run. Seeing it at all means the card filled up at least once; it tells you nothing about how often. The count lives in the per-frame line instead:picked_waitingis the number that matters for your 0.2 FPS. If it grows over the prologue rather than settling, the card is being asked for more than it can hold and is re-streaming; if it sits near zero while the frame time stays at 5.5 s, the stall is somewhere else and worth not chasing.RUST_LOG=debugcosts a lot here. This build logs per-texture and per-copy at debug, and at 5.5 s/frame you are spending part of that budget on formatting.RUST_LOG=victory_gpu=info,victory_shader=infokeeps the frame lines and the census without the rest.On what I can and cannot contribute: I have no game files, so I cannot reproduce your 3080 result and will not guess at a root cause from one report. What I can do is read the paths your log names.
Two observations from that, offered as candidates and not as answers:
The CPU search and the texture census are separate stalls and your description mixes them.
back_line(shadow.rs:1213) reports MB compared per frame for shader writes; thetextures picked by indexline is the descriptor pass. At 5582 ms/frame, knowing which of the two dominates splits the problem in half — and they have different knobs.The loading-screen loop is the interesting symptom, more than the frame rate. "Repeating thumbnails that get stuck instead of advancing" means a frame that should have been presented was not, repeatedly — which is consistent with the swap chain waiting, not with textures being slow.
VICTORY_PIPELINE_WAIT_MSand the relay switches change that wait without touching memory. If the loop survives a lower wait, it is not the pipeline build either.If you can attach the two frame lines (
shader writes looked for on the CPU per frameandtextures picked by index, both atinfo) from a run in the prologue, that is enough for someone with the title to make progress. Without them, "0.2 FPS with texture churn" is compatible with several causes and I would only be guessing.Imported from Zettrox/ztrx. Originally posted by cryptz1zz on 2026-11-25T15:10:49Z.
Thanks for the guidance I ran it again with the correct variables and reduced logging.
shader writes looked for on
the CPU per frame: 0.0 MB compared in 0 ranges of windows outside buffers (0.0 MB snapshotted), 23.0 MB in 255 ranges
of title buffers' copies (22.9 MB snapshotted), of them 0.0 MB in copies of 1 MiB or more
(VICTORY_CARD_BUFFERS_MIN_MB=1 would have the card look there)
textures picked by index, the
queue: 9152 slots, 8217 of them due (the oldest written 5946 frames ago), 32 waiting for their memory, 422 uploaded in
part; since the start: 881 slots found uploaded already by the draws that read them through tables, 12258 writes of
tables' slots (due some frames later), 11690 slots taken out as read through a table, 1311 uploads of textures not all
mapped (0 of them without their first page), 4012 looks that found no more mapped; 48600 slots made stale by a newer
view of other memory there, 225551 ranges of memory mapped, unmapped or written under texture views (65536 dropped),
1038 slots made due by them, 50 made slots found unmapped and made null