Watch
1
0
Fork
You've already forked cocainebunnylaboratories--cblvictoryvi
0
Read-only copy of github.com/cocainebunnylaboratories/cblvictoryvi · A Windows compatibility layer for Xbox Series X|S, based on VIctory.
  • Rust 99.7%
  • PowerShell 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-27 20:31:13 +11:00
.cargo Initial commit 2026-11-23 01:15:26 +01:00
.githooks Initial commit 2026-11-23 01:15:26 +01:00
.github/workflows CI: clippy and tests on pull requests and main 2026-11-24 09:55:29 +01:00
apps/victory Stamp frame summaries and the window caption with five-second run uptime 2026-11-26 00:35:12 +11:00
crates Stage an opt-in depth-shaded ambient resolve for the 5080 replay 2026-11-27 01:00:56 +11:00
docs Record the ambient replay and rejected depth binding 2026-11-27 01:09:24 +11:00
scripts Stage an opt-in depth-shaded ambient resolve for the 5080 replay 2026-11-27 01:00:56 +11:00
tests/fixtures/hle-probe Run Grand Theft Auto VI from first boot into the world 2026-11-23 23:10:01 +01:00
xtask Add diagnostic launcher for checkpoint replays 2026-11-25 18:21:46 +11:00
.gitattributes Add reusable diagnostic launch scripts 2026-11-25 13:34:04 +11:00
.gitignore Run Grand Theft Auto VI from first boot into the world 2026-11-23 23:10:01 +01:00
.victory-root Initial commit 2026-11-23 01:15:26 +01:00
Cargo.lock Take the test/fx-prs branch of asdaasdsaddf's fork (as one commit) 2026-11-24 19:00:31 -05:00
Cargo.toml Take the test/fx-prs branch of asdaasdsaddf's fork (as one commit) 2026-11-24 19:00:31 -05:00
LICENSE Initial commit 2026-11-23 01:15:26 +01:00
README.md Record the latest Vice-Tay visual results 2026-11-27 20:31:13 +11:00
results.md Record the latest Vice-Tay visual results 2026-11-27 20:31:13 +11:00
rust-toolchain.toml Initial commit 2026-11-23 01:15:26 +01:00
rustfmt.toml Initial commit 2026-11-23 01:15:26 +01:00
victory.example.toml The game is no longer named in the tree 2026-11-24 15:45:05 -05:00

CBL VIctory · RTX 5080 tuning

CBL VIctory is a Windows compatibility layer for Xbox Series titles. The vice-tay-5080-tuning branch tunes Vice-Tay's Direct3D 12 renderer on an RTX 5080 and Ryzen 9 9950X3D. The 5080-tuning branch records the earlier 4K experiments. Use your own game files outside the checkout. The repository contains the compatibility layer and its tools. Architecture · Asset policy

Current results

Series X at 2560×1440 game output reached roughly 12–15 FPS in individual gameplay samples. In the latest comparison, the page-mapping patch measured a median of 12.3 FPS (81.3 ms/frame) across reports with 6,000–9,000 draws per frame and zero pending pipelines. The pinned reference measured 12.2 FPS (81.7 ms/frame). The longest mapping call in the 75-second capture fell from 79.7 ms to 21.4 ms. This is a possible hitch reduction from one replay. The 95-second captures had shorter calls on both builds. Results and measurement conditions

The longest recorded session remains 65 min 46 s at Series X 3840×2160 output on the older 5080-tuning branch. It went from the Chapter 1 boat checkpoint into open-world driving, on-foot play and manual saves. The 1440p results come from separate short replays. The next target is 25 FPS (40 ms/frame) at Series X 1440p. Run history

Build and launch

Use vice-tay-5080-tuning for the scripts, build commands and tuning settings below. For the earlier 5080-tuning branch, use the slot 2 replay with its RangeWater profile. 4K replay procedure

Use Windows 11, a Direct3D 12 GPU with shader model 6.6 and mesh shader support, the MSVC build tools and Windows SDK, and the repository's pinned Rust toolchain. Create victory.toml from the example if you need a new configuration, then set game_dir to your own dump. Use a regular PowerShell session from the repository root. Configuration example · Vice-Tay build and Windows 10 Agility SDK notes

cargo build --locked --profile diag -p victory --features diagnostics
.\scripts\play-series-x-1440p.ps1
Script in scripts Profile Requested game output
play-series-x-1440p.ps1 Series X 2560×1440
play-series-x-4k.ps1 Series X 3840×2160
play-series-s-1080p.ps1 Series S 1920×1080
play-series-s-4k.ps1 Series S 3840×2160

The four scripts launch windowed and keep the game's aspect ratio on ultrawide displays. VICTORY_WINDOW_SIZE sets a window target fitted to the work area, and VICTORY_WINDOW_MAX can cap it further. VICTORY_OUTPUT sets the game's output size and back-buffer selection on the supported title build. Internal rendering follows the title's upscaler and profile. Verify the output patch in boot.log and presentation dimensions in trace.log. The Series S 1440p preset was replaced with 1080p after the former hit a breakpoint before its first present. Series S 1080p launched and exited cleanly. Resolution and test notes

play.ps1 accepts -VictoryExe for an isolated build, -Exe for a game executable, and -More for explicit environment overrides. The presets warm shaders and pipelines before play. The warmer skips the archive scan when its build, driver, archive and shader settings match the cache stamp. It warms previously recorded pipelines when the inputs are available. Runs record new pipeline inputs and stream logs to target/play-logs/<run>. The directory contains boot.log, trace.log and run.json, which records the executable SHA-256, settings, timestamps and exit code. F3 toggles the performance panel. Launcher · Cache warmer

Restore a backup save

Close VIctory first. Pass a snapshot folder name or full path under the configured backup directory. The script stages a copy, preserves any previous active saves in a dated saves-before-restore-* directory, and installs the copy under the configured VIctory data directory. The source backup stays intact. Restore script and backup root

.\scripts\restore-save.ps1 -Path 'your-snapshot-folder'

Applied tuning

The NVIDIA launcher inherits Vice-Tay's 4090 preset. The tested 5080 profile uses the same submission, GPU copy and shader settings. Set four mapping threads explicitly for the measured 1440p profile. The convenience launcher otherwise uses the preset's automatic mapping policy.

Area Settings used in the 1440p replay
Workers VICTORY_FAST_CORES=2, VICTORY_MAP_THREADS=4, VICTORY_THIN_THREADS=12, VICTORY_UNDER_THREADS=8, VICTORY_LAND_THREADS=6, VICTORY_TITLE_PRIORITIES=0
Submission and copies VICTORY_RELAY=2, VICTORY_RELAY_COPY=1, VICTORY_WIDE_BACK=1, VICTORY_CARD_STEPS=2, VICTORY_CARD_REHASH_RUNS=1, VICTORY_PLACED_ORDER=1, VICTORY_JOIN_COPIES=1, VICTORY_JOIN_PARTS=8
Draw and upload preparation VICTORY_THIN=1, VICTORY_INDIRECT_WINDOW=1, VICTORY_INDIRECT_BATCH=2, VICTORY_UPLOAD_AHEAD=1, VICTORY_TEXTURE_NO_WAIT=1
Output and diagnostics VICTORY_OUTPUT=2560x1440 with a matching window target, VICTORY_AMBIENT=0.8, VICTORY_SHOW_AFTER=1, VICTORY_PANEL=1, VICTORY_D3D12_DRED=light, VICTORY_PIPELINE_BOOK=1, VICTORY_LOG=info
Shader compatibility The four-pipeline NVIDIA allowlist in VICTORY_WAVE_WIDE_ONLY
Disabled for comparison Frame generation, texture readback pool and the experimental retirement worker. The normal water texture readback path remains enabled.
$timeline = "target\play-logs\series-x-1440p-$(Get-Date -Format 'yyyyMMdd-HHmmss').json"
.\scripts\play.ps1 -Console series-x -Machine 4090 -Windowed -WindowSize 2560x1440 -WarmCache -CaptureLog -More @{
    VICTORY_OUTPUT = '2560x1440'
    VICTORY_WINDOW_MAX = '2560x1440'
    VICTORY_FAST_CORES = '2'
    VICTORY_MAP_THREADS = '4'
    VICTORY_FRAMEGEN = '0'
    VICTORY_READBACK_POOL = '0'
    VICTORY_TIMELINE = "75+95,5,$timeline"
}

This command runs the branch build in target/diag. The recorded mapping comparison used -VictoryExe with separately built diagnostic executables at Vice-Tay a9612459, one with the local planner. Keep that pin for comparisons with the recorded results. Build identities and replay procedure

Local changes and trials

  • Page mapping. The planner prepares aligned groups outside the mapping lock, tracks contiguous destinations as an interval and reuses a set for scattered destinations. It preserves dependency order, actual host mapping calls, write guards and GPU notifications. All 5,000 generated planner comparisons matched, and all 19 Windows mapping tests passed. The native CPU benchmark moved from 116.7 µs to 4.7 µs for a synthetic 4,096-page contiguous request. Code · Benchmark
  • Relay measurements. Diagnostic builds time list readbacks, flight resource completion, descriptor release, title notifications and retirement. The optional VICTORY_RETIRE_WORKER=1 sends completed descriptor resources to a bounded release worker after fence completion and the existing retirement lag. It releases inline when the queue is full. The trial shifted some retirement time off the relay with little change in total frame time, so the measured profile keeps it off. Relay implementation · Results
  • Scheduling and buffer reuse. Scheduling level 2 remains the reference after the level 1 comparison changed direction across sample windows. Four mapping threads had the better midrange result against the inherited automatic setting. The upstream texture readback pool reused most buffers and reduced driver allocations, with similar overall frame times in the tested route. Experiment ledger
  • Upstream integration. The Vice-Tay tuning branch starts from 0d509383 and carries Vice-Tay's #130 readback pool and opt-in Agility SDK support, #135 cold-cache shader translation, #136 Blackwell shader translation fallback, and #137 and #141 texture correctness changes. The later a9612459 test pin adds helper-wakeup and readback timing work from #158 and reuse of readback scratch and shadow range storage from #166. Upstream work is tracked separately. If combining a change regresses the measured route or breaks compatibility, keep the working pin and cherry-pick compatible fixes individually. Upstream history and review

Known problems

With Vice-Tay’s renderer, we no longer see the blocky surfaces or unusually white water reflections reported in earlier runs. Shadows can still look almost black at times, and some models occasionally show a magenta tint. Visual status

Open-world performance remains below the 25 FPS target. Frame preparation and copy-back can delay GPU submissions, and world entry can compile new pipelines and stall. Draw drops and workload vary with the route. The short 1440p test has yet to go through an endurance run. Results

Credits and license

Based on Marvisak's VIctory, fxceless's renderer work and TaynanGT's Vice-Tay, with upstream authors and port credits preserved in Git history and the archived README. GPL-3.0-or-later. Credits · Archived Vice-Tay README · Original at 0d509383 · Earlier 5080 project README · License