Active community continuation and development branch of cool_fox (the CGBJ runtime, ranked #1 / 91.5% Playable on PortWatch VI).
This build unites the cutting-edge optimizations from leading PortWatch projects (avatarmanz, codec-d, DexNom, Belobug, and community contributors) into a unified, verified runtime for both AMD Radeon and NVIDIA GeForce GPUs.
- Pareto Memory Residency & 32 GB RAM Support: Adaptive GPU memory residency limits, preventing WDDM paging exhaustion (
0x8007000E) on mid-range and 32 GB systems. - Shader LOD Slot Fix (PR #2): Leaves unused LOD slots undefined in array texture coordinate queries, resolving DXIL validator errors on retail shaders.
- NVIDIA & Video Stream Synchronization (PR #6): Synchronous flush for decoded video frame copies, eliminating stutter and repeated frames in opening videos during multithreaded recording (
VICTORY_THIN=1), and constant ambient lighting (VICTORY_AMBIENT=constant:0.8). - Wine / Proton & DXIL Robustness (PR #10): Code-generated root signatures replacing fragile comment pragmas for vkd3d-shader, single-latch DXIL loop CFG normalization, and 256 MiB pipeline worker stack.
- Voxel Visibility Recovery: Restores wave64 mask provenance when restored from scalar copies, enabling foliage and volumetric voxel visibility shaders to pass compilation.
- Custom Resolution & Scaling:
VICTORY_OUTPUT=1920x1080(or2560x1440) andVICTORY_RENDER_SCALE=0.667..1.0with the 4K backbuffer pool check bypass. - Frame Rate Unlock:
VICTORY_FRAME_INTERVAL_MS=16.667(60 FPS) or8.333(120 FPS) while keeping game simulation clock strictly at 1.00x. - Renderer Port 5 (Zero-Copy CBV):
VICTORY_PORT_CBV=1reads constant buffers as raw bytes in-place, eliminating ~22,000 buffer copies per frame.
You need Windows 10/11 x64, a CPU with AVX2, a Direct3D 12 GPU with shader model 6.6 and mesh shaders, Rust (1.98+), MSVC build tools, and your own legal Xbox Series dump of the game.
git clone https://github.com/DoubleGhosty/cool_fox.git
cd cool_fox
cargo build --release --locked -p victory$env:VICTORY_GAME_DIR = 'D:\Games\MyDump'
.\Play-VIctory.cmdFor 4GB / 8GB VRAM laptops or low-memory systems, you can also launch with:
.\Play-VIctory-4GB.cmd- codec-d / CGBJ: Original
cool_foxruntime and pareto residency architecture. - AvatarManz (VIctory-7900XTX): Multi-threaded command list recording, framerate unlocking, and renderer ports.
- DexNom: Wave64 lowering, scalar recovery, and shader structure passes.
- Belobug: Ambient lighting and integer target blend protections.
- Marvisak & fxceless: Foundational VIctory compatibility layer.
Legal notice: This repository contains no copyrighted game code, assets, or executables. All code is licensed under GPL-3.0-or-later. copy victory.example.toml victory.toml # then set your paths, outside this folder cargo build --locked --profile diag -p victory --features diagnostics scripts\play.ps1 -Exe <path of your copy's executable>
`scripts\play.ps1 -Safe` leaves out the newest, faster ways; try it first when
something is wrong. `-RayTracing` turns the title's ray-traced indirect light on.
Before the first run, ahead of time (both can be stopped and go on later):
```powershell
target\diag\victory.exe shaders <the shader archives> # every shader translated, minutes
target\diag\victory.exe warm --used # pipelines earlier runs drew with, for a new driver or build
Commands, debugging switches and upstream's own description:
docs/README-fxceless.md. Every VICTORY_... switch is
described in a comment where it is read.
In short; the reasons and the measurements are in docs/findings.md.
- List calls are written down, not carried out, on the title's threads
(
VICTORY_THIN): eight threads of ours translate them. - Submissions are prepared by a thread of ours and joined
(
VICTORY_ASYNC_SUBMIT,VICTORY_JOIN_PARTS), with what can be spread over threads spread: refreshes, compares (AVX2), descriptor records, landings. - What shaders wrote comes back beside the write guards, by the dwords that
changed, on a thread of its own (
VICTORY_RELAY,VICTORY_LAND). - Buffer fills that need bytes still on the card are done on the card
(
VICTORY_CARD_STEPS) instead of waiting for it. - The title's writes are caught more cheaply: one view opened at a fault, blocks that rest, places in the title's code that look before they write.
- Textures go up on a copy queue of their own and a slot shows one only after its upload ran, which also ended a device loss that came every 15 minutes or so.
- Boats float: textures that shaders write and the title's CPU reads go back to title memory (from fxceless and Geckomacabre, on by default here).
- Frame record and replay with per-pass times and shader variants compared turn by turn (docs/replay.md).
This is a tree of other people's work with more on top. The history is kept, and commits taken from elsewhere name the commit and its author.
- VIctory by Marvisak and its contributors: the loader, the runtime services, the Direct3D 12 back end and the shader recompiler.
- fxceless/victory-fork: the fork this one started from, and the people whose pull requests it carries.
- DexNom/VIctory: ray tracing fixes, cube gradients, sparse textures.
- Belobug/VIctory-Belobug-AMD: the ambient light idea, pipeline workers, and work by romainhedouin.
- FQY55kai/ZJOU-VICTORY.
- myokex/victory-amd: the guard over every view of a page (with Spexivus, joroyt and tightfall), and Joshua Odom's reads into title memory.
- Geckomacabre and cxy0072019-sketch: the texture read-back.
- XCL (GPL-2.0-only) was read for how the same title behaves under another layer; no code of it is here.
- This fork's changes were made with Claude Code.
GPL-3.0-or-later, as VIctory. See LICENSE; the one file that is not covered is named in docs/asset-policy.md.