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

Open
opened 2026-11-26 03:36:03 +00:00 by github-bot · 4 comments
Owner

@⁠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 of 4e17478, unchanged. Default TDR. Switches: VICTORY_D3D12_DRED=1 only (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.

phase ms/frame draws/frame notes
first ~4 min in the world 1,400–2,600 (0.4–0.7 fps) 100–2,100 1,200–1,580 pipelines being made
4–10 min 590–890 2,100–5,000 the pipeline library fills; 0 being made from ~10 min
after the pipelines finished (last 40 samples) ~500 mean, 421–699 (about 2.0–2.4 fps) ~4,940 mean ~164 ms preparing, ~211 ms on the GPU, ~108 ms copying back
  • Refused pipelines: 4 compute pipelines (0x80070057): 02384a60fda6f2d0, 2cc4c197ee29e291, 2da4beb386509b77 and 369cbe906ea72764, the same four as in #75 and #93. Also 1 mesh pipeline (f5e50eb2108c425b + pixel ce3f0432a08f1d35). 973 compute pipelines were created.
  • Dropped draws at steady state: ~350 per frame, almost all "a stage of the ray-tracing structure builder, which is off". 1–5 per frame from the refused compute pipelines.
  • Untranslated: 6 shaders, among them f133e35efed2a48a: "a lane mask exchanged where not every lane runs is not supported".
  • Other warnings: 29 × the not-implemented pipeline creation slot 0x218 (expected), 4 × depth bounds test left out, rpcrt4.dll refused once.

Memory on a 32 GB machine, sampled every 10 s from outside the process:

at world entry steady state
working set 14.3 GB 15.1–16.3 GB
private (commit) 17 GB 23.4–24.1 GB
system commit / limit 44 / 45 GB 50–51 / 52 GB (the page file grew)
free physical RAM 4.2 GB 3.1–4.4 GB

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/testers update 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.

**@⁠JFIREonFIRE** on GitHub · 2026-11-24 21:26 UTC · [original](https://github.com/fxceless/victory-fork/issues/94) **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 of `4e17478`, unchanged. Default TDR. Switches: `VICTORY_D3D12_DRED=1` only (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. | phase | ms/frame | draws/frame | notes | |---|---|---|---| | first ~4 min in the world | 1,400–2,600 (0.4–0.7 fps) | 100–2,100 | 1,200–1,580 pipelines being made | | 4–10 min | 590–890 | 2,100–5,000 | the pipeline library fills; 0 being made from ~10 min | | after the pipelines finished (last 40 samples) | **~500 mean, 421–699** (about 2.0–2.4 fps) | **~4,940 mean** | ~164 ms preparing, ~211 ms on the GPU, ~108 ms copying back | - **Refused pipelines:** 4 compute pipelines (`0x80070057`): `02384a60fda6f2d0`, `2cc4c197ee29e291`, `2da4beb386509b77` and `369cbe906ea72764`, the same four as in #75 and #93. Also 1 mesh pipeline (`f5e50eb2108c425b` + pixel `ce3f0432a08f1d35`). 973 compute pipelines were created. - **Dropped draws at steady state:** ~350 per frame, almost all "a stage of the ray-tracing structure builder, which is off". 1–5 per frame from the refused compute pipelines. - **Untranslated:** 6 shaders, among them `f133e35efed2a48a`: "a lane mask exchanged where not every lane runs is not supported". - **Other warnings:** 29 × the not-implemented pipeline creation slot `0x218` (expected), 4 × depth bounds test left out, `rpcrt4.dll` refused once. **Memory on a 32 GB machine**, sampled every 10 s from outside the process: | | at world entry | steady state | |---|---|---| | working set | 14.3 GB | 15.1–16.3 GB | | private (commit) | 17 GB | 23.4–24.1 GB | | system commit / limit | 44 / 45 GB | 50–51 / 52 GB (the page file grew) | | free physical RAM | 4.2 GB | 3.1–4.4 GB | 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/testers` update 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:36:03 +00:00
Author
Owner

@⁠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:

  1. VICTORY_D3D12_DEBUG=1 for half a minute at the same spot. Your log already shows lines only a diagnostics build prints, so the switch is available. Each failed CreateComputePipelineState drains 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 to host pipeline refused, with id and severity. 0x80070057 alone does not say which field the runtime rejected; the layer's text usually names it (root signature, CS bytecode, flags).

  2. VICTORY_WAVE_WHY=1, stderr captured. For f133e35efed2a48a the 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=1 prints one WAVE64-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 … MB and textures … 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.

**@⁠viktoschi** on GitHub · 2026-11-24 22:49 UTC · [original](https://github.com/fxceless/victory-fork/issues/94#issuecomment-7146691596) 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:** 1. `VICTORY_D3D12_DEBUG=1` for half a minute at the same spot. Your log already shows lines only a diagnostics build prints, so the switch is available. Each failed `CreateComputePipelineState` drains 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 to `host pipeline refused`, with `id` and `severity`. `0x80070057` alone does not say which field the runtime rejected; the layer's text usually names it (root signature, CS bytecode, flags). 2. `VICTORY_WAVE_WHY=1`, stderr captured. For `f133e35efed2a48a` the 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=1` prints one `WAVE64-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 … MB` and `textures … 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.
Author
Owner

@⁠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.

run switches steady state (last 40 frame lines) draws/frame preparing / GPU / copying back
default none 567 ms (482–780), ~1.8 fps ~7,000 190 / 254 / 112 ms
speed VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024 273 ms (263–292), ~3.7 fps ~4,860 97 / 112 / 46 ms
  • The two runs ended on different shots, which is why their draw counts differ. The default run had moved on into the barracks room, while the speed run was still on the barred window. On the same window shot, the default run in my first report measured about 500 ms for ~4,900 draws, so the switches are worth roughly 1.8× on this card.
  • With the warm library, pipelines were done about 2 minutes into the world, against ~10 minutes cold.
  • The picture looks the same with and without the switches. I did not try VICTORY_RELAY (#89).
  • Peak private memory was 24.7–25.0 GB in both runs.
  • The same 4 compute and 1 mesh refusals as before. Root cause in #75.

Two artifacts in the barracks shot (default run), in words since screenshots aren't wanted:

  1. Rectangular patches on the main character's hair. Square blocks show what looks like another texture or the wrong mip, with hard edges, over an otherwise well-lit ponytail.
  2. Small bright orange rectangles floating on the right wall and on a bunk frame, like light quads or decals with no texture.

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 mapped and 1679 uploaded in part in the texture-queue line, so the hair patches may be partly uploaded textures.

AI-assisted (Claude Code).

**@⁠JFIREonFIRE** on GitHub · 2026-11-24 23:04 UTC · [original](https://github.com/fxceless/victory-fork/issues/94#issuecomment-7146991363) 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. | run | switches | steady state (last 40 frame lines) | draws/frame | preparing / GPU / copying back | |---|---|---|---|---| | default | none | 567 ms (482–780), ~1.8 fps | ~7,000 | 190 / 254 / 112 ms | | speed | `VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024` | **273 ms (263–292), ~3.7 fps** | ~4,860 | 97 / 112 / 46 ms | - The two runs ended on different shots, which is why their draw counts differ. The default run had moved on into the barracks room, while the speed run was still on the barred window. On the same window shot, the default run in my first report measured about 500 ms for ~4,900 draws, so the switches are worth roughly 1.8× on this card. - With the warm library, pipelines were done about 2 minutes into the world, against ~10 minutes cold. - The picture looks the same with and without the switches. I did not try `VICTORY_RELAY` (#89). - Peak private memory was 24.7–25.0 GB in both runs. - The same 4 compute and 1 mesh refusals as before. Root cause in #75. **Two artifacts in the barracks shot (default run)**, in words since screenshots aren't wanted: 1. Rectangular patches on the main character's hair. Square blocks show what looks like another texture or the wrong mip, with hard edges, over an otherwise well-lit ponytail. 2. Small bright orange rectangles floating on the right wall and on a bunk frame, like light quads or decals with no texture. 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 mapped` and `1679 uploaded in part` in the texture-queue line, so the hair patches may be partly uploaded textures. AI-assisted (Claude Code).
Author
Owner

@⁠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.

**@⁠ryotdev** on GitHub · 2026-11-24 23:06 UTC · [original](https://github.com/fxceless/victory-fork/issues/94#issuecomment-7147013122) 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](https://github.com/ryotdev/VIctory/commit/7b8d699ee28af0ada4bfc80b94590ff77e516288). 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.
Author
Owner

@⁠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 2119b0e plus 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:

Owner GB How it was attributed
The title's own memory (its virtual allocations) 4.6 committed private pages at console addresses
Host copies of title memory (shared, write-back) 4.7 buffers we create and map; 3.4 GB of it is windows outside registered buffers, 1.2 GB registered buffers
Upload buffers (list scratch, texture staging) 0.3 buffers we create and map
Our own heap allocations 1.3 the allocator's count (about 1 million blocks under 4 KiB = 0.18 GB; one block of 0.4 GB)
Write-combined memory we never map 10.9 not ours; it tracks the live default-heap resources one to one (below)
Other memory we never map (driver command memory, pipelines and the like; not write-combined) ~2.3 not ours, minus our heap above
Total private 24.3

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:

Live default-heap resources (64 MiB each) Private Write-combined Card local
none 0.06 GB 0.01 GB 0.01 GB
16 textures (1.0 GB) 1.09 1.04 1.03
64 textures (4.0 GB) 4.17 4.11 4.10
200 textures (12.5 GB, over the 11.0 GB budget) 12.89 12.81 12.81
200 buffers 12.89 12.81 12.81

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:

  • The biggest lever is how much we keep in the default heap. During play the card sat at 9.9 of 11.0 GB, with 1,200 texture passes that made nothing for lack of room, 20,351 host texture copies let go and 2,333 made again since the start. Every GB of host textures kept alive is a GB of commit as well. Eviction of textures that have not been sampled for a while (in the direction of #140 and #48) moves private memory one to one; tuning the copies of title memory does not touch these 10.9 GB.
  • The copies of title memory (4.7 GB) are the second item. Of the 3.4 GB of windows, about 1.8 GB lie outside the lowest-to-highest range ever asked for in each window. That is in line with #54, where finer grids gave back only about 0.3 GB.
  • The title's own 4.6 GB and the page-file sections are what the console's memory takes; they do not shrink without running buffers in place.

Counts and sizes only; no game data. The probe and the counter are local diagnostics and are not proposed for merge.

**@⁠SantannaCarlos** on GitHub · 2026-11-25 00:25 UTC · [original](https://github.com/fxceless/victory-fork/issues/94#issuecomment-7148500570) **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 `2119b0e` plus 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: | Owner | GB | How it was attributed | |---|---:|---| | The title's own memory (its virtual allocations) | 4.6 | committed private pages at console addresses | | Host copies of title memory (shared, write-back) | 4.7 | buffers we create and map; 3.4 GB of it is windows outside registered buffers, 1.2 GB registered buffers | | Upload buffers (list scratch, texture staging) | 0.3 | buffers we create and map | | Our own heap allocations | 1.3 | the allocator's count (about 1 million blocks under 4 KiB = 0.18 GB; one block of 0.4 GB) | | **Write-combined memory we never map** | **10.9** | not ours; it tracks the live default-heap resources one to one (below) | | Other memory we never map (driver command memory, pipelines and the like; not write-combined) | ~2.3 | not ours, minus our heap above | | **Total private** | **24.3** | | 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: | Live default-heap resources (64 MiB each) | Private | Write-combined | Card local | |---|---:|---:|---:| | none | 0.06 GB | 0.01 GB | 0.01 GB | | 16 textures (1.0 GB) | 1.09 | 1.04 | 1.03 | | 64 textures (4.0 GB) | 4.17 | 4.11 | 4.10 | | 200 textures (12.5 GB, over the 11.0 GB budget) | 12.89 | 12.81 | 12.81 | | 200 buffers | 12.89 | 12.81 | 12.81 | 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:** - The biggest lever is how much we keep in the default heap. During play the card sat at 9.9 of 11.0 GB, with 1,200 texture passes that made nothing for lack of room, 20,351 host texture copies let go and 2,333 made again since the start. Every GB of host textures kept alive is a GB of commit as well. Eviction of textures that have not been sampled for a while (in the direction of #140 and #48) moves private memory one to one; tuning the copies of title memory does not touch these 10.9 GB. - The copies of title memory (4.7 GB) are the second item. Of the 3.4 GB of windows, about 1.8 GB lie outside the lowest-to-highest range ever asked for in each window. That is in line with #54, where finer grids gave back only about 0.3 GB. - The title's own 4.6 GB and the page-file sections are what the console's memory takes; they do not shrink without running buffers in place. Counts and sizes only; no game data. The probe and the counter are local diagnostics and are not proposed for merge.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/fxceless--victory-fork#94
No description provided.