Renderer ports, residency and memory switches
CGBJ Renderer Ports 1 to 7, Pareto VRAM and the 0x8007000E Fix
The renderer ports are switches in cool_fox that each remove one class of per-frame CPU work. Pareto residency and VICTORY_LEVELS_ON_DEMAND keep VRAM inside the Windows budget so the runtime stops failing with 0x8007000E.
The estimator below applies the README's measured savings to a frame time you measured yourself and flags combinations the launcher comments mark as unstable.

Pareto Residency & Frame-Time Gain Estimator
Enter a frame time measured with all optional ports off, then toggle switches. The ranges use the README's figures; Port 7 is a 1 to 3 ms range and RT stall removal applies only with ray tracing on.
Ports 6 and 7 are on in every launcher.
Port reference table
| Port | Switch | What it removes | Saving | Default |
|---|---|---|---|---|
| 1 | VICTORY_PORT_CONSTANTS=1 | The title's 174 MB constants heap is read in place by the GPU; no uploads or fills | ~6 ms, ~17 MB/frame fewer copies | Off (AMD launcher: on) |
| 5 | VICTORY_PORT_CBV=1 | Constant buffers read as raw bytes; about 22,000 CBV fills per frame eliminated | ~4.7 ms | Off (AMD launcher: on) |
| 6 | VICTORY_PORT_GUARD=1 | Write-guard lock shared by faults and refreshes, one claim per 64 KiB block | ~2 ms | On |
| 7 | VICTORY_PORT_JOURNAL=1 | Journal notes split into 64 parts with their own locks; heaps synced at submit | ~1 to 3 ms | On |
| RT | VICTORY_PORT_RT=1 | Ray-tracing submission ordering; fills forwarded from copies | Removes 15 to 61 ms stalls with RT on | Off |
Ports 2, 3 and 4 have no public switch in the current README, so they are not listed here. The README notes that the ports were tested on AMD first and may have edge cases on NVIDIA cards with limited VRAM.
The 0x8007000E out-of-memory failure, explained
0x8007000E is the standard Windows HRESULT E_OUTOFMEMORY. Under Direct3D 12 the application, not the driver, decides which heaps must stay resident in video memory. The Windows Display Driver Model (WDDM) gives each process a budget. Exceed it and allocation or residency calls start failing. A console title assumes one unified memory pool, so a naive translation tries to mirror everything onto the graphics card, and on 8 to 12 GB cards it runs out.
CGBJ's Pareto residency answers that with adaptive residency limits; as the name suggests, the aim is to keep the minority of memory that does most of the work on the card while the rest pages through system memory, which is why system RAM between 16 and 32 GB matters. Three switches support it:
VICTORY_LEVELS_ON_DEMAND=1allocates card memory only for the mip levels the title currently holds instead of full mip chains. The README reports up to 3 GB saved. It is on in all launchers.VICTORY_LIST_IDLE_TRIM_Ssets how long idle command lists and upload buffers survive before being released, so a quiet loading screen does not pin memory.VICTORY_CARD_BUFFERS_MIN_KBsets the smallest buffer copied to the card: 64 KB in the default launchers, 4096 KB in the 4 GB launcher, which also caps card buffers at 256 MB.
If you still hit 0x8007000E, close browser tabs with hardware acceleration, check that the page file is system managed, and on 8 GB cards stay on Play-VIctory.cmd rather than enabling Port 1, which the launcher comments link to a C++ exception on those cards.
Other performance switches
VICTORY_THIN=1: record list calls on title threads and translate on workers. Stable on AMD; on NVIDIA head skin may not draw.VICTORY_JOIN_PARTS=8: join submission parts across 8 threads. On NVIDIA it repeated frames of the opening video.VICTORY_UPLOAD_AHEAD=1: speculative texture uploads before the title asks.VICTORY_CARD_STEPS=2: buffer fills run on the GPU instead of stalling the CPU.VICTORY_PIPELINE_WAIT_MS=0andVICTORY_LIBRARY_STORE_LATER=1: remove 500 ms pipeline stalls and 200 ms library save hitches.
For per-pass timing use the frame record and replay feature (VICTORY_RECORD) described in docs/replay.md.
How to measure a fair baseline
Build the diagnostics profile with cargo build --locked --profile diag -p victory --features diagnostics, then run scripts\play.ps1 -Exe <path> -Safe to disable the newer paths including ports 6 and 7. Stand in the same spot for 60 seconds, note the average frame time, then rerun without -Safe. Pre-warm pipelines first (scripts\play.ps1 -Exe <path> -Record once, then scripts\play.ps1 -Warm) so shader compilation does not pollute either run. Run PowerShell from a normal window, not as administrator, so the driver keeps its shader cache in the usual place. Want vendor-specific scripts? See AMD vs NVIDIA setup.
Renderer Ports and VRAM FAQ
Checked against the DoubleGhosty/cool_fox README, launcher scripts, commit history and the GitHub REST API on 2026-11-27.
What does error 0x8007000E mean in CGBJ?
0x8007000E is the Windows HRESULT E_OUTOFMEMORY. In CGBJ it appears when GPU allocations exceed what the WDDM video memory manager can page in. The Pareto residency limits, VICTORY_LEVELS_ON_DEMAND=1 and idle list trimming (VICTORY_LIST_IDLE_TRIM_S) were added to keep systems with 16 to 32 GB of RAM inside that budget.
Are the per-port millisecond savings additive?
Roughly, but not exactly. Each port removes a different class of CPU work, so savings usually stack, but the README measured them on specific machines. Ports 1 and 5 both touch constant data, so expect some overlap. Measure your own baseline with the same scene before and after.
Why are ports 1 and 5 off on NVIDIA 8 GB cards?
The default launcher's comments record that on 8 GB NVIDIA cards VICTORY_PORT_CBV=1 can drop road surfaces, and PORT_CONSTANTS together with PORT_CBV can raise C++ exception #15. Play-VIctory-AMD.cmd enables both for AMD cards with 16 GB or more.
What does VICTORY_PORT_RT do?
It reorders ray-tracing submission and forwards buffer fills from copies. It only matters when ray tracing is on, where the README reports it removes 15 to 61 ms stalls. It is off by default in every launcher.