Skip to content
LkxexPublic

About

Open-source Xbox Series S to Windows D3D12 compatibility layer based on ReVIctory, tuned for AMD RDNA2 and Radeon RX 6600 with FSR 3.1.6.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Repository files navigation

LucVIa — RDNA2 AMD Tuned Project

LucVIa v7

Open-source Xbox Series S to Windows D3D12 compatibility layer for AMD RDNA2
Focused on Radeon RX 6600 8 GB, 16 GB system RAM, and AMD FSR 3.1.6.

Prologue result. Approximately 25–30 displayed FPS in parts of the prologue on an RX 6600 and Ryzen 5 5600 with Frame Generation enabled. With upscaling enabled and Frame Generation disabled, the reported base rate is approximately 10–15 FPS.

Prologue benchmark · Build and launch · Asset policy


Asset Policy: This repository contains zero game files or copyrighted assets. You must supply your own legally dumped title files outside this repository. Verified by cargo xtask policy.

What's New in LucVIa v7 (Unified Architecture)

LucVIa v7 rebases onto the modern lock-free ReVIctory core (vram.rs, soft.rs, commit.rs, bigalloc.rs, framegen.rs, overlay F1/F3 UI, AVX2+FMA DSP) and unifies the strongest proven memory, copy-back, VRAM, and AMD RDNA2 optimizations across the ecosystem:

1. Memory, RAM & Copy-Back Elimination (16 GB RAM Ready)

  • mimalloc + bigalloc Hybrid Allocator: Replaces the Windows system heap lock on small allocations with mimalloc while keeping direct virtual-memory pooling for >= 1 MiB blocks.
  • Write-Combined & GPU Read-Only Copy-Back Elision (VICTORY_WC_NO_BACK, VICTORY_WC_SUBRANGE_NO_BACK, VICTORY_WC_NO_BACK_MIN_KB, VICTORY_GPU_RO_SKIP): Tracks write-combined (0x400) and GPU-read-only (PAGE_GRAPHICS_READONLY) regions and subtracts them at sub-range granularity from shader write-back, cutting synchronous 30+ MB/frame copy-backs.
  • AVX2 Non-Temporal Snapshot Copies: Uses _mm256_stream_si256 + _mm_sfence on >= 64 KiB snapshot writes to avoid polluting CPU L3 cache.
  • Sparse File-Backed Physical Sections (VICTORY_FILE_PHYSICAL=1): Moves 64 KiB physical page sections off Windows pagefile commit into sparse DELETE_ON_CLOSE temp files with a 128 GiB (TITLE_TOP_BITS=37) virtual address ceiling.
  • Large XMemAllocDefault Write-Watch (VICTORY_WATCH_LARGE_XMEM=1): Routes >= 1 MiB general allocations through MEM_WRITE_WATCH reservations.

2. 8 GB VRAM & RDNA2 Memory Architecture

  • Sparse Tiled Loose Shadow Windows (VICTORY_WINDOWS_SPARSE, ported from fxceless/blackbebec): Backs 4 MiB loose shadow windows with D3D12 CreateReservedResource + 64 KiB UpdateTileMappings (supported natively on AMD RDNA2 Tier 3). Unmapped/zeroed tiles consume 0 bytes of GDDR6 and automatically return to the pool, eliminating multi-gigabyte PCIe spills.
  • 16 MiB Texture Pool Blocks (VICTORY_POOL_BLOCK_MB): Automatically selects 16 MiB heap blocks on <= 12 GiB VRAM cards to prevent 64 MiB block fragmentation.
  • WDDM Non-Local Headroom Guard (residency.rs) & Guarded PC Spill (VICTORY_TEXTURES_IN_PC): Tracks WDDM shared memory (NON_LOCAL) alongside system commit so 16 GB RAM hosts never hit commit OOM.
  • 4-Frame Texture Turn Rotation (VICTORY_TEXTURE_TURNS=1): Smooths background texture refresh sweeps across 4 frames.
  • Raw Buffer View Clamping (VICTORY_RAW_VIEW_CLAMP=1): Prevents out-of-bounds raw SRV/UAV faults on RDNA2.

3. AMD RDNA2 Execution, Pipeline & Visual Quality

  • Stage-Scoped Mesh-Launch Amplification (VICTORY_MESH_LAUNCH=1): Eliminates per-draw compute clamp barriers on single-record indirect mesh draws while preserving non-mesh shader caches, validating 12-byte record bounds, binding a dedicated GENERIC_READ dummy SRV on direct launches, and emitting a single UAV barrier only when compute writes occurred.
  • Coalesced Card-Side Constant Copies (VICTORY_CARD_STEPS_JOIN=4096): Merges adjacent constant/copy reads up to 4 KiB apart into single CopyBufferRegion commands.
  • Stale Frame Pipeline Wait Guard: Prevents older frames from resetting a newer frame's pipeline compilation wait budget.
  • Scene-Only 5-Tap Anti-Ringing RCAS (VICTORY_SHARPEN=0.35): Sharpens only the rendered scene plane (t0) in compose.rs without touching HUD/UI (t1).
  • Series S PC AMD FSR 3.1.6 + HUDLess 2x Frame Generation (VICTORY_FSR_PC=1, VICTORY_FSR_VERSION=3, VICTORY_FRAMEGEN_VERSION=3, VICTORY_FSR_FRAMEGEN=1, VICTORY_FRAMEGEN_HUDLESS=1): Enables native PC AMD FidelityFX FSR 3.1.6 upscaling and HUD-less 2x frame generation on RDNA2 without requiring Series X 4K patches (keeps FSR 4 off on RDNA2).

Prologue benchmark

Build Hardware Profile Displayed frame rate
LucVIa v7 Radeon RX 6600 8 GB, Ryzen 5 5600, 16 GB DDR4, Windows 11 Series S, AMD FSR 3.1.6 upscaling from 720p to 1080p, HUD-less 2x Frame Generation Approximately 25–30 FPS
LucVIa v7 Radeon RX 6600 8 GB, Ryzen 5 5600, 16 GB DDR4, Windows 11 Series S, 720p to 1080p upscaling, Frame Generation off Approximately 10–15 FPS

The ranges are project-reported observations in parts of the prologue. The Frame Generation result includes generated frames. The Frame Generation-off result uses upscaling. Frame-time percentiles and sustained performance across the entire prologue are unverified. Scene-transition stalls and texture pop-in are still under investigation.

Quick Start (Windows 11 + AMD RDNA2)

Prerequisites

  • Windows 10/11 x64, AVX2 CPU, AMD RDNA2+ GPU (e.g. RX 6600 8 GB) or compatible SM 6.6 D3D12 GPU, 16 GB+ RAM, SSD.
  • Rust MSVC toolchain (rust-toolchain.toml) and Visual Studio C++ Build Tools.
  • Your own title dump placed outside this repository.

Build

cargo build --release --bin victory

Launch (Generic Script)

# Pure Native RDNA2 (Series S, RX 6600 8 GB / 16 GB RAM profile)
.\scripts\play-lucvia.ps1 -Exe "D:\Path\To\Title\title.exe" -DataDir "D:\Path\To\LucVIaData"

# With AMD FSR 3.1.6 HUDLess 2x Frame Generation
.\scripts\play-lucvia.ps1 -Exe "D:\Path\To\Title\title.exe" -DataDir "D:\Path\To\LucVIaData" -FrameGen

Optional switches on scripts/play-lucvia.ps1:

  • -FrameGen: enables PC AMD FidelityFX FSR 3.1.6 HUDLess 2x Frame Generation (requires AMD FidelityFX SDK DX12 DLLs in VICTORY_FIDELITYFX_DIR or bin/fidelityfx-2.4.0).
  • -NoSparse: sets VICTORY_WINDOWS_SPARSE=0 if you want committed 4 MiB loose windows instead of D3D12 tiled windows.
  • -NoMeshLaunch: sets VICTORY_MESH_LAUNCH=0.
  • -Sharpen 0.35: adjusts scene-only RCAS sharpening (0 to 1).
  • -Console series-s (default) or series-x.

In-game controls: F1 opens the settings overlay, F3 toggles the telemetry HUD.


Credits & Upstream Projects

LucVIa v7 stands on the shoulders of the open-source compatibility ecosystem:

  • Upstream VIctory — foundational Xbox-to-D3D12/Windows compatibility layer & DXIL translator
  • ReTerryDavis/ReVIctory — lock-free shadow/soft-page/VRAM/FidelityFX/overlay base
  • ProjectLeonida/mandy — write-combined sub-range & GPU read-only copy-back elision research
  • fxceless/blackbebec — D3D12 tiled sparse loose shadow windows (sparse.rs)
  • lobomfz/VIctory-xmem — memory management & stale-frame wait fixes
  • RAZDA4A-XEN & Grimkaaah — 16 GB RAM / Ryzen 5 5600 validation, FILE_PHYSICAL, and 8 GB VRAM tuning

License

GPL-3.0-or-later. See LICENSE and docs/asset-policy.md.

About

Open-source Xbox Series S to Windows D3D12 compatibility layer based on ReVIctory, tuned for AMD RDNA2 and Radeon RX 6600 with FSR 3.1.6.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages