Its numbers are a 16 GB card's (2 GB of buffer copies on the card, 3 GB kept for render targets, textures up to 95 %), not an NVIDIA one's: an 8 GB NVIDIA card would be overfilled by them, and a 16 GB AMD card gets them right. Port 1 stays off, which on an RX 9070 XT doubles the frame rate outdoors (#180). - The processor's thread counts (landing threads, pipeline workers, DirectStorage workers) are left to victory.exe, which sizes them from the cores; they were fixed for an 8-core Ryzen 7 9700X. The under and view pools keep 4 threads each, below their default of 6. - Development settings out: VICTORY_PIPELINE_BOOK=1 (every pipeline written down as the run goes) and the detailed info-level log; it logs warnings, as the other launchers. - README, the launcher table and the GPU report form name the new file.
cool_fox
Experimental compatibility layer and shader translation runtime for running Xbox Series (Scarlett / GDK) x64 executables natively on Windows D3D12 (AMD Radeon and NVIDIA GeForce).
Legal notice: This repository contains no copyrighted game code, keys, assets, or executables. It does not provide or link to any third-party software, and does not instruct or encourage bypassing console protections. Use only with software you are legally entitled to run. All original code here is licensed under GPL-3.0-or-later (see LICENSE and docs/asset-policy.md).
Quick Start (Prebuilt Release — Low-End & 4 GB VRAM Ready)
No Rust toolchain or Visual Studio required for standard runs:
- Download
cool_fox-windows-x64.zipfrom Releases and extract it. - Copy
victory.example.tomltovictory.tomland setgame_dirto your title folder (or setVICTORY_GAME_DIR). - Run the launcher for your GPU:
- 4 GB VRAM / Low-end GPUs:
.\Play-VIctory-4GB.cmd(Series S profile, reduced card buffers) - NVIDIA + AMD (8 GB+ VRAM):
.\Play-VIctory.cmd - AMD (16 GB+ VRAM):
.\Play-VIctory-AMD.cmd - 16 GB+ VRAM, NVIDIA or AMD (new, feedback welcome):
.\Play-VIctory-16GB.cmd
- 4 GB VRAM / Low-end GPUs:
Note: Requires a Direct3D 12 GPU with Shader Model 6.6 and Mesh Shaders (older architectures without hardware Mesh Shaders, such as Polaris / RX 580, are not supported).
Verify the download (antivirus warnings)
victory.exe is not code-signed yet, and every release is a file Microsoft Defender's cloud has never seen. Its machine-learning check can therefore flag the archive on download: Trojan:Script/Wacatac.B!ml is a generic verdict of that model (!ml), not a known piece of malware. VirusTotal reports nothing for these archives.
The archive is built by GitHub Actions from this repository's source (.github/workflows/release.yml). Before running it, you can check that what you downloaded is that build:
# 1. The checksum: compare with cool_fox-windows-x64.zip.sha256 on the release page.
Get-FileHash .\cool_fox-windows-x64.zip -Algorithm SHA256
# 2. GitHub's signed build provenance (needs the GitHub CLI, `gh`):
gh attestation verify .\cool_fox-windows-x64.zip -R DoubleGhosty/cool_fox
You can also build it yourself from source (below). Please don't turn your antivirus off. If it flags a release, open an issue with the detection name and we will report the false positive to Microsoft.
Measured Gains & Hardware Reports
- 4 GB VRAM Profile (
Play-VIctory-4GB.cmd): Series S profile with reduced card buffers and-SkipRayWork(drops ray-tracing prep passes, cutting GPU card time from 128 ms to 67 ms on an RTX 3050 4 GB). - On-Demand Mip Levels (
VICTORY_LEVELS_ON_DEMAND=1): Allocates card memory only for texture mip levels the title holds, saving up to 3 GB of VRAM. - Renderer Ports (
PORT_GUARD+PORT_JOURNAL): Enabled by default in all launchers, saving 2–5 ms per frame on tested GPUs (and 15–61 ms RT stalls removed withVICTORY_PORT_RT=1). - Community Fixes & Verified Runs: Recent closed issues resolved blockers across NVIDIA 32-lane (#129), 16 GB VRAM / 32 GB RAM (#115), Wine / Proton (#114, #116), and DXIL shader lowering (#106, #111).
- Submit your results: Running on a 4 GB, 8 GB, or 16 GB+ card? Share your FPS, frametime, and
logs\session-*.logvia GPU Compatibility Report.
Key Features & Recent Improvements
- Pareto Memory Residency & 32 GB RAM Support: Adaptive GPU memory residency limits, preventing WDDM paging exhaustion (
0x8007000E) on 16–32 GB systems. - Pipeline & Descriptor Stability:
VICTORY_PIPELINE_WAIT_MS=0&VICTORY_LIBRARY_STORE_LATER=1in launchers to eliminate 500 ms frame stalls and 200 ms+ pipeline-library save hitches.- Panic-safe pipeline worker queue (
Pending::make_with) so a failed translation never hangs waiting threads. submit_splitdynamic descriptor slot release (list::tables_done) andalias_ofreference pinning (Heldguard) to prevent slot exhaustion and use-after-free during async texture aliasing.- DirectStorage staging buffer cleanup and idle list/upload trimming (
VICTORY_LIST_IDLE_TRIM_S). - Bindless heap root-signature flags (
CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED,SAMPLER_HEAP_DIRECTLY_INDEXED) are now probed at startup and omitted on runtimes that reject them, fixing "Unsupported bit-flag set" errors on older D3D12 runtimes. - Offline batch shader translator (
victory shaders) catches panics per-shader so a single void-value assert no longer kills the entire translation run.
- Shader & Ray Tracing Fixes:
- Shader LOD slot fix (leaves unused LOD slots undefined in array texture coordinate queries to pass DXIL validation).
- Wave32 cascade lowering, scoped submerged shader lowering, and dynamic view address buffer indexing (
SLOT_VIEW_ADDRESSES) for ray-tracing BVH descriptors. - Voxel visibility wave64 mask provenance recovery and blendshape pre-dispatch initialization.
- NVIDIA & Video Synchronization: Synchronous flush for decoded video frame copies (
VICTORY_THIN=0,VICTORY_JOIN_PARTS=0by default in launchers for NVIDIA compatibility) and constant ambient lighting (VICTORY_AMBIENT=constant:0.8). - Wine / Proton & DXIL Robustness: Code-generated root signatures for
vkd3d-shader, single-latch DXIL loop CFG normalization, and 256 MiB pipeline worker stack. - Custom Resolution, Scaling & Framerate:
VICTORY_OUTPUT=1920x1080(or2560x1440) andVICTORY_RENDER_SCALE=0.667..1.0.VICTORY_FRAME_INTERVAL_MS=16.667(60 FPS) or8.333(120 FPS) while keeping simulation timing at 1.00x.
- Renderer Ports (Performance):
VICTORY_PORT_GUARD=1andVICTORY_PORT_JOURNAL=1now enabled by default in launchers: write-guard lock sharing and journal splitting save 2–5 ms per frame on all tested GPUs.VICTORY_PORT_CONSTANTS=1andVICTORY_PORT_CBV=1remain opt-in for NVIDIA 8 GB stability; AMD users should usePlay-VIctory-AMD.cmdwhich enables all ports.VICTORY_LEVELS_ON_DEMAND=1enabled by default: card memory allocated only for texture mip levels the title holds, saving up to 3 GB of VRAM.
Build from Source
Requirements
- Windows 10/11 x64
- CPU with AVX2 support
- Direct3D 12 GPU with Shader Model 6.6 and Mesh Shaders
- Rust toolchain (see
rust-toolchain.toml) and MSVC C++ Build Tools (with Windows SDK)
Build from Source
git clone https://github.com/DoubleGhosty/cool_fox.git
cd cool_fox
cargo build --release --locked -p victory
On Windows 10, build with the D3D12 Agility SDK instead. Windows 10's own D3D12 has
no shader model 6.6 bindless heaps, and root signatures then fail with 0x80070057:
cargo build --release --locked -p victory --features agility-sdk
powershell -ExecutionPolicy Bypass -File scripts\get-agility-sdk.ps1
The feature makes victory.exe ask for Microsoft's D3D12Core.dll 1.619.6 in D3D12\
beside it, and the script fetches it from NuGet and puts it there. Such a build needs the
DLL: without it D3D12 does not start (0x887E0003). The default build is unchanged
and does not need it. Not for Wine or Proton.
The GPU tests on Windows 10 need the same. Build the test programs, run the script once
more (it also fills target\debug\deps\D3D12\), then run the same tests:
cargo test --locked -p victory-shader -p victory-gpu --features victory-shader/agility-sdk,victory-gpu/agility-sdk --no-run
powershell -ExecutionPolicy Bypass -File scripts\get-agility-sdk.ps1
cargo test --locked -p victory-shader -p victory-gpu --features victory-shader/agility-sdk,victory-gpu/agility-sdk
Launch
$env:VICTORY_GAME_DIR = 'D:\path\to\your\title'
.\Play-VIctory.cmd
Or set game_dir in victory.toml (copied from victory.example.toml); every
launcher reads it when VICTORY_GAME_DIR is not set.
For AMD Radeon GPUs (RX 7000+, 16 GB+ VRAM) with all renderer ports enabled:
.\Play-VIctory-AMD.cmd
For 4 GB VRAM GPUs or low-memory systems:
.\Play-VIctory-4GB.cmd
| Launcher | Target | Renderer Ports | Notes |
|---|---|---|---|
Play-VIctory.cmd |
NVIDIA + AMD, 8 GB+ | 6, 7 on; 1, 5 opt-in | Safe default for all GPUs |
Play-VIctory-AMD.cmd |
AMD 16 GB+ | 1, 5, 6, 7 all on | Maximum performance; all ports from top community forks |
Play-VIctory-4GB.cmd |
4 GB VRAM | 6, 7 on; 1, 5 off | Series S profile, reduced card buffers |
Play-VIctory-16GB.cmd |
NVIDIA or AMD, 16 GB+ | 6, 7 on; 1, 5 opt-in | Series X, native 4K output, 2 GB card buffers, async texture streaming; threads follow the CPU (was Play-VIctory-RTX5070Ti.cmd) |
scripts\play.ps1 |
Diagnostics | 6, 7 on; -Safe disables |
Full logging; -RayTracing for RT |
Each Play-VIctory*.cmd launcher writes the session's log to
logs\session-<date>-<time>.log beside it (the newest 20 are kept) and says
where at startup; set VICTORY_LOG_FILE to log somewhere else. Attach that
file when reporting a problem.
Diagnostics & Pre-warming
copy victory.example.toml victory.toml # set your local paths outside this repo
cargo build --locked --profile diag -p victory --features diagnostics
scripts\play.ps1 -Exe <path_to_executable>
scripts\play.ps1 -Safe disables newer experimental paths; -RayTracing enables ray-traced indirect lighting.
To pre-translate shaders or pre-warm cached pipelines ahead of time:
target\diag\victory.exe shaders <archive_paths>
target\diag\victory.exe warm --used
warm has nothing to make until one run has written the pipelines down
(scripts\play.ps1 -Exe <path> -Record). Some switches are part of the shader
cache's key, so both commands should see the ones the runs do: run them as
scripts\play.ps1 -Warm and scripts\play.ps1 -Shaders <archive_paths>,
with the same -Safe, -RayTracing and -More as play.
Commands, debugging switches, and technical notes are documented in docs/README-fxceless.md and docs/findings.md. Every VICTORY_... environment variable is also documented where it is read in the source.
Performance Tuning (Renderer Ports)
Each renderer port eliminates a class of per-frame CPU work. They are tested on AMD first and may have edge cases on NVIDIA with limited VRAM.
| Port | Switch | What it does | Saving | Default |
|---|---|---|---|---|
| 1 | VICTORY_PORT_CONSTANTS=1 |
Title's 174 MB constants heap read in place by the card; no uploads or fills | ~6 ms, ~17 MB/frame fewer copies | Off (8 GB NVIDIA: C++ exception #15) |
| 5 | VICTORY_PORT_CBV=1 |
Constant buffers read as raw bytes; ~22,000 fills/frame eliminated | ~4.7 ms | Off (8 GB NVIDIA: dropped surfaces) |
| 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–3 ms | On |
| RT | VICTORY_PORT_RT=1 |
Ray-tracing submission ordering optimized; fills forwarded from copies | Removes 15–61 ms stalls with RT on | Off |
Additional performance switches:
VICTORY_LEVELS_ON_DEMAND=1— allocate card memory only for texture levels the title holds (saves up to 3 GB VRAM)VICTORY_THIN=1— record list calls instead of executing on title threads (AMD stable; NVIDIA: head skin may not draw)VICTORY_JOIN_PARTS=8— join submission parts across 8 threadsVICTORY_UPLOAD_AHEAD=1— speculative texture uploads before the title asksVICTORY_CARD_BUFFERS_MIN_KB=64— minimum size for card-side buffer copies (lower = more buffers on card)VICTORY_CARD_STEPS=2— buffer fills on the GPU instead of stalling the CPU
Architecture Highlights
- Recorded Command Lists (
VICTORY_THIN): List calls are recorded on the title's threads and translated across worker threads. - Parallel Submission Prep (
VICTORY_ASYNC_SUBMIT,VICTORY_JOIN_PARTS): Frame preparation, AVX2 comparisons, descriptor records, and landings are parallelized and joined in submission order. - Write-Guard Relay (
VICTORY_RELAY,VICTORY_LAND): GPU-written buffers are read back by changed dwords on a dedicated relay thread. - On-Card Buffer Fills (
VICTORY_CARD_STEPS): Buffer fills depending on card-resident bytes execute on the GPU instead of stalling the CPU. - Dedicated Texture Copy Queue & Read-Back: Textures upload on a dedicated copy queue; GPU-written textures read by the CPU are copied back cleanly.
- Frame Record & Replay: Per-pass timing and shader variant comparison via
VICTORY_RECORD(docs/replay.md).
Community & Portwatch
The portwatch-vi.xyz tracker ranks compatibility layers by progress. As of November 2026, the leading open-source forks and their key techniques:
| Project | GPU Target | Techniques adopted here |
|---|---|---|
| Belobug | AMD | PORT_CBV, PORT_CONSTANTS, PORT_GUARD, PORT_JOURNAL, ambient lighting, pipeline workers |
| Kelvaroq | NVIDIA | Unified memory layer, async present, mesh via amplification, changed-page queries |
| DexNom | AMD | Ray tracing, sparse textures, parallel preludes, FSR 4.1.2 |
| fxceless/victory-fork | NVIDIA | Shader cleanup passes, levels on demand, lookup cache, async submit |
| avatarmanz | AMD | Multi-threaded recording, renderer ports, frame record & replay |
Techniques from these projects not yet in cool_fox that are under investigation:
- Unified memory layer (Kelvaroq): serve GPU lookups from game memory with no copy, reducing per-frame copies from >100 MB to <8 MB.
- Async present (Kelvaroq): pipeline up to 2 frames ahead, decoupling CPU submission from GPU completion.
- Descriptor-table patching (Belobug): stores report the slots they write instead of scanning ~600,000 slots per frame.
- Mesh draws via amplification stage (Kelvaroq): eliminates the indirect-draw clamp pass.
Credits & Upstream
This repository builds on the work of many contributors across the VIctory ecosystem, preserving commit history and attribution:
- VIctory by Marvisak and contributors: loader, HLE services, D3D12 backend, and shader recompiler.
- fxceless/victory-fork: base fork and upstream pull requests.
- codec-d / CGBJ:
cool_foxruntime and pareto residency architecture. - avatarmanz/VIctory-7900XTX: multi-threaded command list recording, framerate unlocking, and renderer ports.
- DexNom/VIctory: ray tracing fixes, cube gradients, sparse textures, and Wave64/DXIL passes.
- Belobug/VIctory-Belobug-AMD: ambient lighting, pipeline workers, and integer target blend protections.
- FQY55kai/ZJOU-VICTORY, myokex/victory-amd, Geckomacabre, and cxy0072019-sketch.
- Dathinel/victory-4gb: the 4 GB measurements on an RTX 3050 Laptop,
-SkipRayWorkand its list of ray-tracing preparation passes (#113), copy-wait diagnostics (#112), and fixes carried in #159. - XCL (GPL-2.0-only) was studied as reference; no XCL code is included.
License
GPL-3.0-or-later. See LICENSE and docs/asset-policy.md.