Skip to content

About

An Xbox Series title on Windows, tuned for weaker PCs. Built on victory-fork and VIctory (credits in README). No game files.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

victory-pc-layer

Xbox Series compatibility on Windows, tuned on a mid-range PC: RTX 2060 SUPER 8 GB, Ryzen 5 5600GT, 32 GB.

This is a fork of Vice-Tay, which builds on VIctory: it runs an Xbox Series title from your own files. The title's x86-64 code runs on the host CPU, the layer provides the console APIs it calls and translates its graphics work to Direct3D 12. This fork keeps Vice-Tay's engine and adds measured changes for an 8 GB NVIDIA card of the RTX 20 generation, plus fixes ported from other forks.

En español: fork de Vice-Tay ajustado y medido en una PC de gama media (RTX 2060 SUPER, Ryzen 5 5600GT, 32 GB). Se juega con jugar.ps1. Abajo están las mediciones, qué cambia respecto de Vice-Tay, qué se probó y no sirvió, y los problemas conocidos.

Playing · Measurements · What this fork changes · Tried and dropped · Known problems · Credits

Measurements

Same route every time: a save in the first boat mission, three minutes driving the boat from open water into the town, the log's frame lines binned by draw calls per frame (more draws, a heavier scene). Series S profile, 1080p output, release build, no frame generation.

Rendered FPS by scene load on the boat route

Where Rendered FPS
Open water, interiors (1,000-3,000 draws) 15-18
Coast and town edge (3,000-5,000 draws) 13-14
Town (5,000-7,000 draws) 11-13
With frame generation (-Generar) about twice that on screen, with more input lag

Where a frame goes in town (about 75 ms): the card is 80-95% busy with the title's own passes, and the thread that prepares and submits the title's work is busy most of the frame. Lowering the render resolution (960 × 540 against 1280 × 720) did not change the frame rate: the cost is per draw and per pass, not per pixel.

Test PC · RTX 2060 SUPER 8 GB (no Resizable BAR), Ryzen 5 5600GT (6 cores, 12 threads), 32 GB DDR4-3200, PCIe 3.0, Windows 11.

Playing

Requirements. Windows 10 or 11 x64, an AVX2 CPU, a Direct3D 12 GPU with Shader Model 6.6 and mesh shaders, Rust (the version in rust-toolchain.toml) and the MSVC build tools with a Windows SDK.

Important

Bring your own copy of the title. Keep the executable, game data and caches outside this checkout. See the asset policy.

git clone -b vicetay https://github.com/wardevsa/victory-pc-layer.git
Set-Location victory-pc-layer
cargo build --locked --release -p victory
$env:VICTORY_GAME_DIR = 'D:\path\to\your\title\folder'
powershell -ExecutionPolicy Bypass -File .\jugar.ps1

jugar.ps1 starts the Series S profile in a window with the settings measured above (scripts\play.ps1 -Machine 3060, pipelines of earlier runs made before the title starts) and writes run-series-s.log beside it. The first start translates shaders and makes pipelines: expect black screens and stutter for a few minutes.

Option Does
(none) 1080p output, NVIDIA DLSS Quality when nvngx_dlss.dll is in %USERPROFILE%\dlss (from NVIDIA's DLSS SDK), else the title's own upscaler at half size; no frame generation
-Generar AMD FSR 3 frame generation (2×), with the FidelityFX SDK 2.4.0 DLLs in %USERPROFILE%\fidelityfx-2.4.0: twice the frames shown, more input lag
-Dlss performance DLSS from a smaller frame (quality, balanced, performance)
-SinDlss / -Nativo The title's upscaler at half size / no upscaling
-Teclado Mouse and keyboard: the mouse turns the camera, WASD walks, the buttons are the triggers; keys in bindings.ini
-ConRayos Run the passes that only prepare for ray tracing again (see below)
-Guardia The texture write guard instead of hashing (faster, but some skins turn to coloured noise)
-Pantalla Full screen
-Release:$false The diagnostics build (target\diag, F3 panel, timing runs)
-Mas @{VICTORY_...='...'} Any other setting

Vice-Tay's own launcher and options (scripts\play.ps1, Play-VIctory.cmd, Linux and Proton notes) are unchanged; see the Vice-Tay README.

What this fork changes

Measured on the route above, each against the run before it:

  • Ray-tracing preparation left out. Without the title's ray tracing nothing reads the 41 skinning passes for its ray structures and the probes' gather copies, but they ran every frame. Left out by default (the list in scripts/rt_work_off_hashes.txt is Dathinel's): the card went from about 95% to 66% busy with the same picture.
  • Textures hashed once a frame (VICTORY_TEXTURE_ONCE_A_FRAME=1). A texture was hashed again in every submission that used it, some 37 a frame: 44-50 ms of the threads' time a frame in town, now 25-33, heavy scenes 0.5-1.5 fps faster.
  • Retired objects queued in O(1) (insert_retired): a late submission number no longer moves the whole queue. Heavy town frames went from 9.5 to 11.7 fps (median).
  • Redirected fills check only their own memory regions, with a lock per 16 MB region and a change counter per region in place of one global counter: the waits in town went from 13-25 ms a frame to none.
  • Decoration bakes get room. While the title bakes skins and decorations, the textures they sample may fill the card to 97%: most of the coloured-noise limbs are gone.
  • Opus audio decoded on a thread of its own: from 10% to 1% of the title's busiest thread.
  • Cheaper card_dirty: the copies in the card's memory are checked by a flag before their weak reference is taken (3.9% to 1.7% of the submitting thread).
  • Defaults: 1080p with DLSS Quality and no frame generation (it looked right only part of the time, with big drops between), console texture formats 189-191.
  • Ported from other forks: mouse and keyboard, a texture alias pinned while it is copied (a use-after-free that could copy the wrong texture), a division fix in the shader translator, split submissions giving their descriptor slots back, and more (each commit names its source).
  • Diagnostics: VICTORY_GPU_TIMING times every command on its own; a test measures what small copies cost the card.

Tried and dropped

Each was measured on the same route and left out because it did not help, or cost picture:

Tried Result
Render at 960 × 540 instead of 1280 × 720 Same frame rate: the card's time is per draw, not per pixel
No barriers at all (timing only) Same frame rate
Leaving out the three heaviest passes +1-1.5 fps, blocky clouds
Texture write guard (VICTORY_TEXTURE_GUARD=1, or only for textures without a second view) Coloured noise on faces and hands, no fps
Shader writes into write-combined memory kept on the card (VICTORY_WC_NO_BACK) +0.3-1.6 fps, patches and green tints on faces
Descriptor records marked by the title's patched stores (VICTORY_PORT_DESCRIPTORS) Heap sync 18.8 → 11.2 ms, same fps, misses records written by memcpy
VICTORY_CARD_WINDOWS_MB=1024, VICTORY_CARD_STEPS=1, VICTORY_SYNC_FINE No gain
Other forks on this PC: VI-BR-PORT (Nov 28), VIctory-NVIDIA on the foxhound base 11-12 fps on the same route; crashed while loading the world three times
The Series X profile at a native 1080p (--console series-x, render scale 1.0) 8-10 fps in town against 12-13, broken faces and blown-out light: this base does not hold it (VIctory-NVIDIA's foxhound base does, at about 12 fps with DLSS on the same PC, with broken cutscenes)

Known problems

  • Coloured noise or rainbow patches on some skins and clothes, mostly in the first cutscenes and at the pool. It shows with every setting tried so far.
  • Black scenes for a while at the first start and in new places, while pipelines are made.
  • Frames: 11-14 fps in town. The goal, 20 fps without lowering the picture, is not reached.

Credits

Built on the work of everyone in Vice-Tay's credits, and in particular:

  • TaynanGT/Vice-Tay, the base of this fork, and Marvisak/VIctory, which built the loader, the console runtime, the Direct3D 12 backend and the shader recompiler.
  • trustno1-coder/VIctory-NVIDIA: mouse and keyboard (ItsMK1's patches), console texture formats, the texture alias fix and the shader division fix.
  • codec-d/cool_fox and its contributors: the region lock and the ray-tracing skip list.
  • Dathinel/victory-4gb: the hashes of the passes that only prepare for ray tracing.
  • edsuuu/VI-BR-PORT: decoration bake work this fork measured against.

License

GPL-3.0-or-later, inherited from VIctory. This project is independent of the title's developer and publisher.

About

An Xbox Series title on Windows, tuned for weaker PCs. Built on victory-fork and VIctory (credits in README). No game files.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages