Xbox Series X|S compatibility layer tuned for Linux, Wine + vkd3d-proton, and 6 GB NVIDIA RTX GPUs
Native x64 execution • RDNA 2 → DXIL shader translation • Hardware Ray-Traced GI & Reflections • Zero CPU emulation
Protonida runs the Xbox Series X|S version of one game on a Linux PC. It does not emulate the console's CPU: the game's own x64 code runs under Wine, and its graphics calls go to vkd3d-proton (D3D12 on Vulkan) after the console's RDNA 2 shaders are translated to DXIL. It is a standalone, Linux-first fork of VIctory, aimed at 6 GB NVIDIA laptop GPUs.
The goal is Series S picture quality at a steady 30 FPS. It is far from that today (about 5 FPS, see below). This is a work in progress for people who want to help, not a way to play the game yet.
Disclaimer: This repository contains no game files, binaries, keys, or assets. You must supply your own legally obtained files. Protonida is not affiliated with or endorsed by any game developer, publisher, or console manufacturer.
Everything below was measured on one machine: Fedora 44 (Linux 7.2.15, /dev/ntsync), Ryzen 5 7535HS (6 cores), 30 GB RAM, RTX 4050 Laptop 6 GB (driver 580.196.07), Wine 11.21 Staging with a patched wineserver (required), vkd3d-proton master (v3.1-97-g71cae09), DXVK 3.1.1, Series S profile. Scene: the game's opening prologue (the prison cell), measured with scripted runs.
What works (2026-11-28)
- The game boots, shows its menus and plays the opening prologue: cutscenes, then walking in the cell.
- Character faces render. They used to be missing in most runs; fixed by never dropping the head's one-time blend-shape pass (docs/faces.md).
- NVIDIA DLSS works under Wine: the game renders 1280x720 and DLSS outputs 1920x1080 (setup).
- No more smearing when the camera moves: the game's own upscaler is bypassed (render scale 1.0, the launcher default).
- Second launches start much faster: compiled GPU pipelines are now kept between launches.
Performance
- 5.6–6.5 FPS in the cell (4.6–5.1 before 2026-11-28), with or without DLSS.
- The GPU is the bottleneck. Most of its time was shaders reading game buffers kept in system RAM; on 6–8 GB cards, buffers of 64 KB and up now go to video memory (up to 1.5 GB), which cut GPU time per frame from about 150 ms to 90–110 ms. More of the GPU time is still to be found.
Known problems
- Very slow (see above). Not playable yet.
- The first time a scene is played, many draws are skipped for up to a minute while their GPU pipelines are compiled;
victory warm(the launcher's Prebake) compiles all 67,000 ahead of time but takes about an hour. - Memory use grows during a run (about 12 GB after a few minutes); keep other programs light. Run the game under a memory cap if you can.
- A crash in the game's own code (
+0x23cf683) has been seen in older builds; not seen in the current one so far. - DLSS frame generation is reported unsupported under Wine.
- Full 1920x1080 rendering (render scale 1.0 at 1080p) does not start; use DLSS for 1080p output.
- On Series S,
VICTORY_OUTPUT=1280x720needsVICTORY_UPSCALER=6(the launcher sets it); the game's FidelityFX path divides by zero at that size. - Distant billboard trees and props are skipped (
VICTORY_SKIP_PIPELINES): they drew as broken flat panels.
Earlier versions of this README showed 20–30 FPS tables. Those numbers were never reproduced on this machine and have been removed.
The list below describes the changes this fork carries over VIctory. Numbers in it come from the work that added each change and have not all been re-measured; Current status is what was measured.
- Wine-native memory & write-watch tracking (
watch.rs,xmem.rs): Tracks placeholder/watched reservations in-process to eliminate refusedGetWriteWatchcalls (293 → 0) andVirtualQueryhole scans (6,705 → 14), plus batched contiguousVirtualProtect(..., PAGE_READWRITE)unguarding (LoverCatys c0a3a1ff). - Wine hot-guard tuning (
VICTORY_GUARD_HOT=1000,VICTORY_GUARD_REST=50000,MANY = 65,536): CutswineserverVirtualProtectIPC faults and guard refreshes without introducing stale-frame artifacts. - Opt-in Linux
UFFD_FEATURE_WP_ASYNC+PAGEMAP_SCANbridge (native/protonida_uffd.c,VICTORY_UFFD_WP=1): ExperimentalLD_PRELOADbridge bypassingwineserverIPC (kept opt-in after benchmarking showedVirtualProtect+PUBLISHEDis faster on multi-GiBMEM_MAPPEDviews). - Frametime percentile telemetry (
p50 / p95 / p99 / max) & ring-buffer CSV (VICTORY_FRAME_DIAG): Logged every 5 seconds invictory_gpu::hostalongside FPS, VRAM, descriptor stats (VICTORY_DESCRIPTOR_STATS=1), and optional async per-frame CSV output; plus opt-in swapchain VSync (VICTORY_VSYNC=1+VKD3D_SWAPCHAIN_LATENCY_FRAMES=1, eliminating 2D/Bink intro cadence spikes). - 16 MB pipeline worker stacks: Prevents silent Wine 2 MB default thread stack overflows during shader translation.
- Portable static
libunwind(+crt-static) + AVX2 (x86-64-v3) + Thin LTO (codegen-units = 1): Zerollvm-mingwruntime DLL dependencies (libunwind.dlleliminated) and maximum CPU throughput across hot copy, hash, and descriptor loops.
- Renderer Ports 1, 2, 6, and 7 (via
avatarmanz/VIctory-7900XTX):- Port 1 (
VICTORY_PORT_CONSTANTS=1): Maps the 185 MB graphics heap in place viaOpenExistingHeapFromAddress(0 host refusals onvkd3d-proton 3.2.0). - Port 2 (
VICTORY_PORT_DESCRIPTORS=1): Patches descriptor-table stores directly instead of scanning ~600,000 slots/frame. - Port 6 (
VICTORY_PORT_GUARD=1): SharedRwLockwrite guards with per-block claims and parallel refresh planning. - Port 7 (
VICTORY_PORT_JOURNAL=1): 64-way sharded journal locks + submit-time heap sync.
- Port 1 (
- NVIDIA 1M-heap
CreateCommittedResourcestorm fix: Eliminated 19,761 unnecessary per-view buffer allocations (OWN_MADE: 19,761 → 2, saving ~230 ms/frame). - Pooled
SHARED_SPAREuploads &WIDE_JOB(256 KiB) (leonida c6c9da9f): Reuses L0WRITE_BACKupload buffers up to 8 MiB and cuts copy/shadow overhead (copies23.7–28.9 ms → ~19.4 ms). - Configurable capped-heap dynamic slots (
VICTORY_DYNAMIC_SLOTS): Safely bounds dynamic slots on NVIDIA's 1M-capped view heap (default262,144preserves static slots0..737,855). BufferSweepspan cache & parallel texture readbacks (XaviFortes/VIctory-RDNA) + safeVICTORY_INDIRECT_WINDOW=0(Itsbatt 340a8f8).- Wine hot-block table expansion (
MANY = 65,536) — prevents hot-guard table wipes during streaming. - NVIDIA dynamic descriptor word-search & early slot release (
avatarmanzPR #237). - Optional RT pass skipping (
VICTORY_SKIP_RT=1): Skips 15 unused ray-tracing compute passes and their VRAM allocations when running in non-RT mode.
- NVIDIA DLSS on Linux (
VICTORY_DLSS=1, launcher: "NVIDIA DLSS"): DLSS Super Resolution replaces the game's FidelityFX upscale: the game renders 1280x720 and DLSS Quality outputs 1920x1080, at the same frame rate as the plain 1280x720 path (4.6-5.0 fps in the opening scene, RTX 4050, 2026-11-28; DLSS took every upscale, none failed). NVIDIA's Streamline loads under Wine 11 with its signatures verified, through vkd3d-proton and dxvk-nvapi. Ported from trustno1-coder/VIctory-NVIDIA (Super Resolution only; frame generation is reported unsupported under Wine). Setup below. - Sharp picture instead of smearing (
VICTORY_RENDER_SCALE=1.0, launcher default): The game's own upscaler renders at 2/3 of the output (853x480 for 1280x720) and blends earlier frames in, which at these frame rates smears the picture whenever the camera moves. With the render scale at 1.0 the game renders at the output size: in the opening scene's cell, turning the character keeps the fence, bunks and background visible instead of a milky blur, at the same frame rate (4.3 fps in both, RTX 4050, 2026-11-28). 1920x1080 at 1.0 does not start (the game's Series S back-buffer pool is too small for it); 1280x720 at 1.0 is the sharpest setting that runs. - Pipelines kept between launches (pipeline library fix): No pipeline library was ever made on vkd3d-proton, so every launch built every pipeline again ("no host pipeline library: pipelines are not kept"). The empty library was asked for with a zero-length blob whose pointer was not null, which vkd3d-proton refuses (
E_INVALIDARG); Windows' D3D12 accepts it. It is now asked for with a null blob; the library is saved while playing and loaded at the next launch, and the game starts noticeably faster from the second launch on (2026-11-28). - Character heads drawn in every run (
VICTORY_PIPELINE_MUST, default61e54e90adccaf6a): The head's blend-shape mapping is dispatched once per character; a dispatch whose pipeline was still being built was dropped, so in most runs the close-up heads never got built (eyes, teeth and hair floated over the collar). That pipeline is now built at first use and never dropped; heads were whole in 3 runs of 3 on the RTX 4050 (2026-11-28). The idea is from Vice-Tay #372.VICTORY_PIPELINE_MUST=0turns it off; a comma-separated hash list replaces the default. See docs/faces.md. - On-demand mip streaming (
VICTORY_LEVELS_ON_DEMAND=1,VICTORY_TEXTURE_BUDGET_MB=1280,VICTORY_TEXTURE_NO_WAIT=0): Prevents saturating a 512 MB up-front mip budget and avoids skipping unfilled remapped pages, increasing streamed textures4.5x(417 MB → 1,877 MB/9,414textures in the opening sequence, restoring crisp character uniform and environment textures). - GPU compute texture detiling (
VICTORY_GPU_DETILE=1,fxceless 3461f52f),TilingCachereadback reuse (TaynanGT f0019f2e), and zero-allocrelay_merge(fxcelessPR#1427): Opt-in GPU compute detiling offloads texture detiling completely (0.00 msCPU detile,0refused dispatches on RTX 4050 +vkd3d-proton 3.2.0) while preserving theStagingPiecepool when off (default = 0). - Full 16-bit
half_viewstranslator & cache stack (LoverCatys 4b5856a1,shader_cache::FORMAT = 3): Addsemit/halves.rs,HostShader::half_views,descriptor::host::half_view/half_inexact, andTablePlan::halfalongsideForceEarlyDepthStencil(VICTORY_EARLY_DEPTH), raw 16-bit integerd16image loads (VICTORY_D16_BITS),VICTORY_SPILL_STRICT+s_bfm_b32literal folding,v_fmac_f32VOP3 bit-2 accumulator modifiers, andwave.rsunmatcheds_*saveexecscanning. - Native Hardware Ray Tracing (
VICTORY_BVH_BUILDER=1) + RT indoor ambient band (VICTORY_AMBIENT_RT) (avatarmanz 77137b98): All 53 BVH structure builder pipelines run natively on NVIDIA RTX viavkd3d-proton, whileVICTORY_AMBIENT_RT=0.35,2.5,0.8prevents crushed black indoor rooms without washing out RTGI detail. - Renderer Port 1 indirect ordering (
VICTORY_PORT_CONSTANTS_ORDER) (avatarmanz 631400f5..15c3d0ea): Clamps in-place indirect arguments right before execution to eliminate tree/palm and lamp-lit room flicker. - Open water without dark blocks (
victorynv 35c15608) & slow-compute thinning (VICTORY_THIN_SLOW_COMPUTE=4,LoverCatys d843417d): Skips wave-wide water tiled-light shaders (5dc3b25986622949,6f225b641c5b0708) on 32-lane NVIDIA hosts (VICTORY_WATER_LIGHT=1re-enables) and thins02384a60fda6f2d0to every 4th frame, cutting GPU wait from 68–77 ms down to 11–26 ms. - Placed RT BVH
view_address(fxceless 9a9091d1),HostHeap::idguard (fxceless #1324), shadow range reuse (Vice-Tay 876a02f8), and RT-off local-lights skip (VIctory-DXR d5efb363): Fixes placed acceleration-structure view addresses, prevents dynamic slot release into reused heap addresses, eliminates per-frame shadow spanVecchurn, and capslist::thinbacking lists at 64. - DirectStorage black-face fix (
VICTORY_PAGE_WRITES=3), dynamic tableVIEW_INTEGER(HostHeap::dynamic_word), and split-submission slot release (fxceless e4245f3c/#1320,flamingo a1178ce8): Re-queues texture slots under DirectStorage writes, populatesself.stridesfor dynamic table slots, and releases split-submission descriptor slots. - Targeted Wave32 compute auto-refresh (
host_shader_fresh) &HostList::untouched()upload guard (leonida dd306a64): Automatically re-translates stale refused Wave64 compute pipelines (e.g.6871d6e4b3ac9a10) without invalidating the shader cache, and guardsplane_uploads/shared_uploadswhile keeping pooled uploads + Kelvaroq 6 GB VRAM budgets (VICTORY_CARD_BUFFERS_MB=256,VICTORY_TEXTURE_STAGE_MB=64,VICTORY_TEXTURE_BUDGET_MB=512). - Wave32 loose-LDS &
ds_bpermute_b32lowering (leonida 76c6f04c): Lowers Wave64 compute shaders that read/write LDS across divergent branches to NVIDIA Wave32 cleanly, plusCalculateLODcoordinate fix. - BC7 texture rotation fix (
fxceless06702fe/ upstream #3111). - RDNA 2 fused
v_mad_legacy_f32with FTZ & zero-factor semantics (fxcelessf6a09d3/ PR #1026). - SDWA 16-bit sign extension (
fxceless58de9bf/ upstream #3124). - Distant billboard impostor skip (
VICTORY_SKIP_PIPELINES): Ungated in release builds to remove broken flat distant panels.
Requires Rust with the x86_64-pc-windows-gnullvm target and an llvm-mingw toolchain. Rust links this target with x86_64-w64-mingw32-clang, so that binary must be on PATH (Fedora's clang/lld packages do not provide it). The xcl-linux setup already ships one under $XCL_LINUX_HOME/llvm-mingw:
export PATH="${XCL_LINUX_HOME:-$HOME/.local/share/xcl-linux}/llvm-mingw/bin:$PATH"
cargo build --release --target x86_64-pc-windows-gnullvm -p victoryerror: linker 'x86_64-w64-mingw32-clang' not found means that directory is not on PATH. Alternatively, point Cargo at the linker directly with CARGO_TARGET_X86_64_PC_WINDOWS_GNULLVM_LINKER=/path/to/llvm-mingw/bin/x86_64-w64-mingw32-clang.
Protonida needs a wineserver built with native/wineserver/index-views-by-address.patch. The title maps its memory in 64 KiB physical pages, one Wine view each (~29,000 in game). Stock Wine's server scans every view of the process on each map and unmap, about 1 ms a call, and the game waits on it:
| wineserver | CPU prep per frame | frame time | wineserver CPU |
|---|---|---|---|
| stock Wine 11.21 | ~950 ms | ~1500 ms | 0.85 core |
| patched (views indexed by address) | 74 ms | 220 ms | 0.05 core |
Build it from the same source as your installed Wine (Fedora's is built with wine-staging, which changes the server protocol; on Fedora the script fetches the installed Wine's source RPM):
scripts/build-wineserver.sh # Fedora
WINE_SRC=/path/to/prepared/wine-src scripts/build-wineserver.sh # elsewhereIt installs to ~/.local/share/xcl-linux/wineserver-runtime/server/wineserver, where the launcher looks. Wine ignores WINESERVER= when it starts a server itself, so the server must already be running for the prefix when the game starts: the launcher stops a stock server of the prefix and starts this one (wineserver -p) before each launch. Scripts that launch the game without the launcher must do the same. Check while the game runs:
readlink /proc/$(pgrep -x wineserver)/exe # must be the patched one, not /usr/bin/wineserver64Run the built-in GTK4 launcher (requires system Python 3 + PyGObject/GTK4, preinstalled on Fedora/GNOME):
/usr/bin/python3 ./scripts/protonida-launcher.pyRun it with the system Python (/usr/bin/python3), which has the GTK 4 bindings; a Homebrew or other python3 first on PATH fails with No module named 'gi'. Set Advanced → victory.exe Path to your build. Stop ends the whole game process group (SIGKILL after 5 s if needed), and the launcher notices when the game exits on its own.
DLSS setup (once). Nothing NVIDIA ships is in this repository.
- NVIDIA Streamline SDK 2.14.16 (NVIDIA RTX SDK licence) from https://github.com/NVIDIA-RTX/Streamline/releases: put
bin/x64(sl.interposer.dll,sl.common.dll,sl.dlss.dll,nvngx_dlss.dll, ...) in~/.local/share/xcl-linux/nvidia-sdk/streamline-v2.14.16/bin/x64, or set the launcher's Streamline folder. - The Wine prefix as Proton sets it up for NGX: dxvk-nvapi's
nvapi64.dll(e.g. from GE-Proton'sfiles/lib/wine/nvapi/x86_64-windows) and the driver'snvngx.dlland_nvngx.dll(/usr/lib64/nvidia/wine) indrive_c/windows/system32, andwine reg add 'HKLM\SOFTWARE\NVIDIA Corporation\Global\NGXCore' /v FullPath /t REG_SZ /d 'C:\windows\system32' /f. - Check without the game:
victory.exe upscaler-check --device(withVICTORY_STREAMLINE_DIR,DXVK_ENABLE_NVAPI=1,nvapi64=ninWINEDLLOVERRIDES) must print "DLSS ran on the GPU". - Tick "NVIDIA DLSS" in the launcher.
Provides main controls for Resolution (720p / 1080p / 1440p / 4K), Console Profile (Series S Lockhart vs Series X Anaconda), Ray Tracing (RTX) (auto-syncing VICTORY_BVH_BUILDER and settings.xml), MangoHud, a RAM-guarded Prebake Shaders button (victory shaders → victory warm with VICTORY_PREBAKE_BIG_MAX=2 + /proc/meminfo watchdog), and a collapsible Advanced drawer for all VICTORY_*, Wine, VRAM, guard, experimental UFFD WP, and skip-pipeline settings (saved to ~/.config/protonida/launcher.json).
For measurements use scripts/bench-phase.sh <profile> <seconds> [KEY=VAL ...] (results in /tmp/protonida-bench/<profile>/). It takes the game from GAME_EXE (a Linux or Wine path) or from the launcher's saved choice, and the build from BENCH_EXE if set.
export WINEDLLOVERRIDES="d3d12,d3d12core,d3d11,dxgi,d3dcompiler_47=n;mscoree,mshtml="
export __GL_SHADER_DISK_CACHE_SIZE=4294967296
export VICTORY_OUTPUT=1280x720
export VICTORY_UPSCALER=6
export VICTORY_PORT_CONSTANTS=1 VICTORY_PORT_DESCRIPTORS=1 VICTORY_PORT_GUARD=1 VICTORY_PORT_JOURNAL=1
export VICTORY_PORT_DESCRIPTORS_EVERY=32 VICTORY_PORT_DESCRIPTORS_CHECK=2
export VICTORY_LATE_WAIT=3 VICTORY_LATE_WAIT_LISTS=1024 VICTORY_ASYNC_SUBMIT=1
export VICTORY_INPLACE=1 VICTORY_INPLACE_MB=4096
export VICTORY_GUARD_REST=50000 VICTORY_GUARD_HOT=1000
export VICTORY_INDIRECT_WINDOW=0 VICTORY_SHOW_AFTER=0
export VICTORY_TEXTURE_BUDGET_MB=768 VICTORY_CARD_ROOM_FOR_TARGETS_MB=2304
export VICTORY_CARD_BUFFERS_MIN_KB=64 VICTORY_CARD_BUFFERS_MB=1024
export VICTORY_PIPELINE_WORKERS=2 VICTORY_PIPELINE_WAIT_MS=0
# Native hardware ray tracing
export VICTORY_BVH_BUILDER=1
export VICTORY_SKIP_RT=0
export VICTORY_AMBIENT=off
wine target/x86_64-pc-windows-gnullvm/release/victory.exe run \
--console series-s \
--execute 'Z:\path\to\game_scarlett_master.exe'Swap the last three variables:
export VICTORY_BVH_BUILDER=0
export VICTORY_SKIP_RT=1
export VICTORY_AMBIENT=2.0
export VICTORY_AMBIENT_AIR=1.5Tip for 6 GB RTX cards: In the title's
settings.xml, settingrtDynamicShadows="false"andssroSampleCount="1"keeps full hardware RTGI and RT reflections while eliminating heavy shadow-ray overhead.
Protonida stands on the shoulders of an incredible open-source community:
- Marvisak/VIctory — original compatibility layer and RDNA 2 → DXIL shader translator
- avatarmanz/VIctory-7900XTX — Renderer Ports 1–7,
VICTORY_OUTPUT, frame-radianceambient.rs, NVIDIA Wave32 & PR #237 - fxceless/victory-fork — BC7 rotation fix, RDNA 2
v_mad_legacy_f32, SDWA sign extension, flight-room & diagnostics engineering - XaviFortes/VIctory-RDNA —
BufferSweepspan caching & parallel texture readbacks - LoverCatys/ruff-lab & Belobug/VIctory-Belobug-AMD —
VICTORY_SKIP_RT,x86-64-v3+ thin LTO profile, and ambient lighting research - trustno1-coder/VIctory-NVIDIA — DLSS Super Resolution through NVIDIA Streamline (
streamline.rs, the FidelityFX interposer) - TaynanGT/Vice-Tay (#372, via LoverCatys/ruff-lab) — the idea that the head blend-shape pipeline must not be dropped
- realblastex/flamingo — the character-geometry investigation that narrowed down the missing heads
- HansKristian-Work/vkd3d-proton — D3D12-on-Vulkan translation on Linux
Licensed under the GNU General Public License v3.0 or later (GPL-3.0-or-later). See LICENSE for details.