Read-only copy of github.com/lepotane/VIctory-leonida · Open-source Xbox Series compatibility layer for Windows 11 x64 (Direct3D 12, 1080p RTX tuned)
  • Rust 99.7%
  • PowerShell 0.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-27 00:28:02 +03:00
.cargo chore: initial VIctory-leonida 1080p RTX baseline 2026-11-26 18:20:14 +03:00
.githooks chore: initial VIctory-leonida 1080p RTX baseline 2026-11-26 18:20:14 +03:00
.github/workflows chore: initial VIctory-leonida 1080p RTX baseline 2026-11-26 18:20:14 +03:00
apps/victory chore: initial VIctory-leonida 1080p RTX baseline 2026-11-26 18:20:14 +03:00
crates fix(shader,gpu): add VICTORY_NAN_SCRUB, VICTORY_AMBIENT_MOST, and clean RTX skin/probe defaults 2026-11-27 00:19:08 +03:00
docs feat(shader): add wave32 loose-LDS/bpermute/TGSM-guard lowering and CalculateLOD coord-undef fix 2026-11-26 20:12:56 +03:00
scripts fix(scripts): raise texture VRAM room to 95%, keep textures resident, and balance dark-scene ambient 2026-11-27 00:28:02 +03:00
tests/fixtures/hle-probe chore: initial VIctory-leonida 1080p RTX baseline 2026-11-26 18:20:14 +03:00
xtask chore: initial VIctory-leonida 1080p RTX baseline 2026-11-26 18:20:14 +03:00
.gitattributes chore: initial VIctory-leonida 1080p RTX baseline 2026-11-26 18:20:14 +03:00
.gitignore chore: initial VIctory-leonida 1080p RTX baseline 2026-11-26 18:20:14 +03:00
.victory-root chore: initial VIctory-leonida 1080p RTX baseline 2026-11-26 18:20:14 +03:00
Cargo.lock chore: initial VIctory-leonida 1080p RTX baseline 2026-11-26 18:20:14 +03:00
Cargo.toml chore: initial VIctory-leonida 1080p RTX baseline 2026-11-26 18:20:14 +03:00
CHANGELOG.md chore: initial VIctory-leonida 1080p RTX baseline 2026-11-26 18:20:14 +03:00
LEGAL.md chore: initial VIctory-leonida 1080p RTX baseline 2026-11-26 18:20:14 +03:00
LICENSE chore: initial VIctory-leonida 1080p RTX baseline 2026-11-26 18:20:14 +03:00
Play-VIctory.cmd chore: initial VIctory-leonida 1080p RTX baseline 2026-11-26 18:20:14 +03:00
README.md docs: add verified 1080p status summary to README 2026-11-26 18:26:37 +03:00
rust-toolchain.toml chore: initial VIctory-leonida 1080p RTX baseline 2026-11-26 18:20:14 +03:00
rustfmt.toml chore: initial VIctory-leonida 1080p RTX baseline 2026-11-26 18:20:14 +03:00
victory.example.toml chore(scripts): lock winning 1080p RTX defaults (INPLACE=0, 499999 slots) 2026-11-26 19:55:50 +03:00

VIctory-leonida

An open-source Xbox Series compatibility layer for Windows 11 x64 (Direct3D 12 + DXIL shader recompiler) tuned for 1920x1080 (1080p) on NVIDIA RTX 40-series GPUs.

Legal & Zero-Asset Notice (LEGAL.md): This repository contains strictly clean-room / GPL-3.0-or-later source code and documentation. It contains zero copyrighted title files, executables, firmware, encryption keys, textures, shaders, screenshots, or binary dumps (enforced via .gitignore and cargo xtask policy; see docs/asset-policy.md). Users must supply their own legally obtained Xbox Series title dump via $env:VICTORY_GAME_DIR. Not affiliated with Microsoft, Xbox, NVIDIA, or any title publisher. See LEGAL.md for full interoperability terms, disclaimers, and DMCA takedown contact details.


Repository Structure

.
├── apps/victory/              # Main runner binary crate
├── crates/
│   ├── victory-core/          # Runtime paths, outside-repo cache enforcement
│   ├── victory-formats/       # BCPack/Bink texture & archive decoders (BC7 mode 4/5 rotation fix)
│   ├── victory-gpu/           # D3D12 backend, shadow/watch/texback/draw/ambient optimizations
│   ├── victory-hle/           # Xbox GDK / OS service emulation & memory management
│   ├── victory-loader/        # PE/TLS loader
│   └── victory-shader/        # Xbox DXIL/GCN translator (kept untouched for cache reuse)
├── docs/
│   ├── BENCHMARKS.md          # Verified 1080p Before/After metrics & VRAM logs
│   ├── KNOWN_ISSUES.md        # Open issues (P1: Dark & Low-Light Scenes) & investigation notes
│   ├── architecture.md        # System design overview
│   ├── asset-policy.md        # Zero-proprietary-assets rule
│   └── findings.md / *.md     # Detailed optimization & RT research notes
├── scripts/
│   ├── play.ps1               # Generic cross-GPU runner
│   └── windows/               # Portable Windows 1080p RTX launcher & NVAPI Smooth Motion helpers
├── tests/                     # Integration test fixtures
├── xtask/                     # `cargo xtask policy` & git pre-commit hook installer
├── CHANGELOG.md               # Version history (`v0.1.0-1080p-baseline`)
├── LEGAL.md                   # Interoperability statement, Asset Policy, DMCA & Disclaimers
└── LICENSE                    # GNU GPL v3.0

Quick Start (Windows 11 x64)

Prerequisites

  • Windows 10/11 x64, AVX2 CPU, Direct3D 12 GPU with Shader Model 6.6 and Mesh Shaders (RTX 4060 Ti 16 GB+ recommended; 64 GB system RAM recommended)
  • Rust toolchain (pinned in rust-toolchain.toml) + MSVC C++ Build Tools & Windows SDK

1. Build & Install Policy Hook

cargo build --release --locked -p victory
cargo xtask install-hooks   # installs pre-commit `cargo xtask policy --staged`

(Optionally create a victory_rtx.exe copy in target\release\ — scripts\windows\play-rtx-1080p.ps1 syncs this automatically.)

2. Optional: Pre-warm Pipelines

Eliminates initial shader/PSO compile stutters into %LOCALAPPDATA%\VIctory\cache-pareto:

.\scripts\windows\warm-pipelines.ps1

3. Launch at 1080p

Point $env:VICTORY_GAME_DIR at your own legally obtained Xbox Series title dump containing game_scarlett_master.exe (outside this repository) and run the 1080p RTX preset:

$env:VICTORY_GAME_DIR = 'D:\Games\MyXboxDump'   # contains game_scarlett_master.exe
.\scripts\windows\play-rtx-1080p.ps1 -SmoothMotion

Useful flags:

  • -SmoothMotion: Enables NVIDIA DRS Smooth Motion for victory_rtx.exe (~2x output FPS). Omit for native frames without interpolation.
  • -ManualMenus: Disables automatic Enter presses during initial title menus.
  • -Windowed: Runs windowed instead of borderless fullscreen.
  • -DisplayMode 1920x1080: Sets display resolution reported to the title.
  • In-game overlays: F3 toggles the built-in top-left FPS/VRAM panel; Alt+R shows NVIDIA Smooth Motion output FPS.

Performance Snapshot (1920x1080, Xbox Series S Profile)

Full measurement methodology and hardware details (Ryzen 9 9950X3D + RTX 4060 Ti 16 GB, Driver 621.40) are in docs/BENCHMARKS.md and open items in docs/KNOWN_ISSUES.md.

Verified Status (1920x1080, NVIDIA GeForce RTX 4060 Ti 16 GB, Ryzen 9 9950X3D, 64 GB RAM, Win11 x64)

  • Exe loads & runs (game_scarlett_master.exe via Xbox Series S profile)

  • First frame / boots (display mode width=1920 height=1080)

  • Main menu (30+ FPS)

  • In the world (1920x1080 native D3D12 rendering)

  • Playable opening sequence (0 refused views, 0 device-removed errors)

  • Native World FPS: 19.4 median / 18.1 avg / 24.1 peak FPS (up from 16.5 median / 20.4 peak baseline)

  • With NVIDIA Smooth Motion (-SmoothMotion): ~32.8 – 48.2 OUT FPS (median ~38.8 OUT)

  • Heap Buffer Pass Overhead: 11.7 ms avg (down 31.2% from 17.0 ms via incremental BufferSweep)

  • VRAM Footprint: 14920 MB diag / 15280 MB release peak (within 15339 MB 16 GB card budget, 0 refused views)


Known Issues (See docs/KNOWN_ISSUES.md)

  • P1 Open — Dark & Low-Light Scenes: Low-light interiors, dim corridors, and night driving scenes still crush shadows / remain darker than desired despite ambient.rs and VICTORY_AMBIENT_FLOOR=0.42 calibration. Further tonemapping/exposure and SSAO floor tuning is planned next.
  • Startup Retry: Very occasionally the first launch with Smooth Motion exits within 5s before D3D12 init; re-running the launcher succeeds normally.

Credits & License

Licensed under the GNU General Public License v3.0 or later (LICENSE).

Built upon:

  • VIctory — Core PE loader, HLE runtime, D3D12 backend, and DXIL recompiler
  • XCL — Reference Xbox compatibility layer architecture and runtime documentation

Also grateful to upstream open-source GNU GPL v3.0 contributors across the compatibility-layer ecosystem whose license-compliant patches informed runtime and GPU optimizations.