RTX 3090 (24 GB) + 32 GB RAM on 4e17478: lit prologue at ~2.0–2.4 fps, 15 min with no device loss; memory fits only by growing the page file #94
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#94
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?
@JFIREonFIRE on GitHub · 2026-11-24 21:26 UTC · original
Setup: Windows 11 (26200), NVIDIA RTX 3090 24 GB, driver 621.01 (
host wave lanes min=32 max=32), i9-9900K (8 cores), 32 GB RAM. Title 1.0.2.1 (b99f876b…), Series X profile, an existing save. Diag build of4e17478, unchanged. Default TDR. Switches:VICTORY_D3D12_DRED=1only (no loop limit, no speed switches). Empty pipeline library (first run of this fork on this machine). The run was capped at 15 minutes and killed by the cap.Result: the lit prologue renders, with no device loss and no crash in 15 minutes. The captured frames show the barred window onto the sunlit yard (watchtower, people at the tables) with the character in the foreground, warm haze and sky.
0x80070057):02384a60fda6f2d0,2cc4c197ee29e291,2da4beb386509b77and369cbe906ea72764, the same four as in #75 and #93. Also 1 mesh pipeline (f5e50eb2108c425b+ pixelce3f0432a08f1d35). 973 compute pipelines were created.f133e35efed2a48a: "a lane mask exchanged where not every lane runs is not supported".0x218(expected), 4 × depth bounds test left out,rpcrt4.dllrefused once.Memory on a 32 GB machine, sampled every 10 s from outside the process:
So the run fits in 32 GB, but only by growing the page file. Free RAM stayed at 3–4 GB, with nothing else heavy running. For comparison, on the same machine an upstream-based tester integration tree (r4tedx
integration/testersupdate 10) reached 27 GB private, kept free RAM under 1 GB, and ran at 0.1 fps (14–19 s per frame). One of its two runs ended in a title breakpoint at 96% memory load. This fork is far lighter and faster here.AI-assisted (Claude Code). Counts and messages only; no game data attached.
@viktoschi on GitHub · 2026-11-24 22:49 UTC · original
I have no copy of the title, so this is your numbers plus the code paths — nothing run here.
The refusals are not the frame time. 164 + 211 + 108 ≈ 483 ms of the ~500 ms steady-state frame, leaving ~17 ms outside the three spans. The four refused compute pipelines are 1–5 of ~4,940 draws/frame, and a draw whose pipeline is missing is dropped rather than drawn slower (
crates/victory-gpu/src/pipeline/make.rs:13) — missing effects, not missing fps. They are also the same four hashes as #75/#93, so this run adds context but no new refusal.What would pin each of the two down:
VICTORY_D3D12_DEBUG=1for half a minute at the same spot. Your log already shows lines only a diagnostics build prints, so the switch is available. Each failedCreateComputePipelineStatedrains the debug-layer queue right after the refusal (crates/victory-gpu/src/pipeline/host.rs:526), so the message that belongs to each of the four appears next tohost pipeline refused, withidandseverity.0x80070057alone does not say which field the runtime rejected; the layer's text usually names it (root signature, CS bytecode, flags).VICTORY_WAVE_WHY=1, stderr captured. Forf133e35efed2a48athe emitter already tries the program in other forms before giving up — without early-outs, without later skips, per host wave — but only for a compute shader on a wave64 program (crates/victory-shader/src/emit/mod.rs:325).VICTORY_WAVE_WHY=1prints oneWAVE64-RETRY …line per form with its error (mod.rs:326-463). That tells apart "the ladder was not entered" (stage not compute, or not wave64) from "every form failed" (a limit of the lowering). The refusal itself (crates/victory-shader/src/emit/lower.rs:2995,:3641) is a ballot mask read as a number in a block not every lane reaches: the upper 32 lanes of the console wave have to be asked for their half through LDS, which needs both host waves at the block.One cheap number already in the log: the frame line splits the 164 ms into
copies … ms … MBandtextures … ms … MB(crates/victory-gpu/src/host.rs:5792-5799). A single full steady-state line would show whether the CPU part is upload traffic or texture placement.@JFIREonFIRE on GitHub · 2026-11-24 23:04 UTC · original
Follow-up on the same RTX 3090 / 32 GB machine at
2119b0e(diag build,VICTORY_D3D12_DRED=1, warm pipeline library). Two 12-minute runs with nothing else running on the machine. Neither had a device loss or a crash.VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024VICTORY_RELAY(#89).Two artifacts in the barracks shot (default run), in words since screenshots aren't wanted:
The window shot in the speed run shows neither. I can't tell yet whether that's the scene or the switches. The log for that run has
6405 uploads of textures not all mappedand1679 uploaded in partin the texture-queue line, so the hair patches may be partly uploaded textures.AI-assisted (Claude Code).
@ryotdev on GitHub · 2026-11-24 23:06 UTC · original
On an RTX 5070 (Windows 11), I reproduced all four compute pipeline refusals listed here. One particle-visibility dispatch now runs with experimental widening off. The same checkpoint previously logged that dispatch as dropped.
The enclosing branch compares a shared-memory word that all 64 threads read at one fixed address. Treating this condition as uniform lets the two host waves synchronize at the existing barriers, including between loop iterations. The change applies only to single-wave groups, with unconditional address/load/compare definitions in a block every lane reaches. It also rejects a re-entered test or a nested lane-dependent branch.
With the original translations the NVIDIA driver created 0/4 pipelines. With the change it created 1/4. The other three still require 64 lanes. I haven't measured a rendering or FPS change attributable to this dispatch.
Patch and handwritten regression on top of 2119b0e. The regression fails on the parent and passes with the fix, including controls for lane-dependent or predicated addresses, misalignment, out-of-range access, loops and multiple console waves. To reproduce without game files, run
cargo test -p victory-shader --lib branch_on_a_common_lds_word_keeps_group_barriers_converged. Full shader suite on Linux x86-64: 171 passed, 2 ignored. AI-assisted.@SantannaCarlos on GitHub · 2026-11-25 00:25 UTC · original
What the ~24 GB of private memory is, measured by owner (RTX 4070 12 GB, 32 GB RAM,
2119b0e).Two 15-minute runs from a save at the first gameplay room (about 13 minutes in the world each, no device loss), diagnostics build of
2119b0eplus a local, diagnostics-only counter that walks the address space every 10 s and splits the process's private bytes by owner. Steady state, from the second run:Not counted as private: the title's physical-page views (13.4 GB mapped) and its page-file sections (7.1 GB).
The 10.9 GB are the commit the OS charges for our video memory. Over the run, that write-combined memory grew with the default-heap resources we keep alive (17,800 resources, mostly host textures: 4.9 GB → 6.1 GB, 8.6 GB → 10.2 GB, steady 9.3 GB → 10.9 GB). A standalone probe on the same card confirms the rate:
On this card and driver, every MB of default-heap resource costs 1.00 MB of private, write-combined commit, below and above the budget, for textures and buffers alike, and all of it goes back when the resources are released. So on this card the host textures cost their size twice: once in video memory and once in the process's commit.
What follows for reducing memory:
Counts and sizes only; no game data. The probe and the counter are local diagnostics and are not proposed for merge.