19 KiB
VIctory — 6 GB VRAM / 16 GB RAM & NVIDIA RTX Edition
Support Me a Coffee
If this fork helped you get the game running smoother on a 6–8 GB GPU or 16 GB RAM laptop, you can buy me a coffee:
- SOL:
Cep7cZA8LPMUAWckR2JyUfvwhSpm9yzUqUWZxN3MY8LP- USDT (ERC-20 / EVM):
0xf3feaf58c2f467508e4fd5d5abf2c1495a74b424
A performance- and low-memory-tuned fork of VIctory-NVIDIA (built on foxhound / VIctory) that runs a game file natively on Windows from files you supply.
This repository contains no game files, code, or assets. You must supply your own legally obtained game file (
.exe). Not affiliated with or endorsed by any developer, publisher, NVIDIA, or AMD. See docs/asset-policy.md.Having issues? (crashes, pagefile, flashing/lighting, low FPS, DLSS/FSR, build errors) → Open the full Troubleshooting Guide (
docs/troubleshooting.md).
What This Fork Adds
- 6 GB / 4 GB VRAM support (
VICTORY_TEXTURE_DROP_MIPS+ ReBAR GPU windows): Drops top texture mip levels (1= Half default for sharp visuals + ~500 MiB VRAM headroom on 6 GB GPUs;2= Quarter for 4 GB GPUs or extra VRAM room with larger ReBAR windows viaVICTORY_WINDOWS_BAR_MB/VICTORY_WINDOWS_VRAM_PERCENT). Toggleable in the F1 menu (TEXTURE SCALE (VRAM)). - 16 GB RAM stability & OOM recovery: Automatically caps idle
STAGING, uploadsend::SPARE(128 MiB), and CPU snapshot (128 MiB) pools on<= 20 GB/<= 32 GBRAM hosts, drains idle pools under critical commit pressure, and retriesE_OUTOFMEMORYin command-list preludes instead of crashing. - Custom windowed output sizes (
VICTORY_OUTPUT) & DLSS Ultra Performance: True1280x720and1664x936windowed output patching plus640X360 (ULTRA FAST)(ultraperformance) in F1 (SERIES S PICTURE/OUTPUT SIZE (WINDOW)), working cleanly alongside DLSS and FSR 3 Frame Generation. - CPU submit-thread, CBV & cutscene optimizations: Direct 256-byte in-place CBV fast path (
VICTORY_DIRECT_CBV, skips ~70% of CPU constant buffer fills whenVICTORY_PORT_CONSTANTS=1is active), per-listHostList::constant_scratchCBV deduplication (FillTo::Slots),Step::Hostprematurebatch.fill()flush fix + sorted/overlap-coalescedBatch::fill()(VICTORY_FILL_BATCH), short initial texture warm-up (START_HOT_FRAMES=4, killing the 12-second 265 MB/frame cutscene texture re-hashing storm while still promoting genuine alias-view updates to 64 frames),heap_texturesearlyVICTORY_TEXSPK_PASS_MSbudget exit (always runningtexture_slots_flip()first), fused single-pass write-watchask_oncewith guarded-view skip, chunkedJOURNAL-batchednothing_newfiltering, AVX2word_runsinShadow::take, cached non-watched view-texture checks with zero-allocwrites_since,AddressHashonDeferred::textures,has_gpu_writefast-skip, deduplicatedcard_beforeroot bindings,Batch::last_ahead1-entry cache, lock-freewatch::AHEAD_KEPT+ binary-searchedahead_contains,RwLock<Guards>shared-read fast path, incrementalHeapRangesspans, and zero-allocHostList::prelude()fast path. - DLSS Super Resolution + AMD FSR 3 / DLSS Frame Generation: Full F1 settings menu, F3 stats panel, HUD-less FSR 3 2X Frame Generation for RTX 20/30 and non-NVIDIA DX12 GPUs, and DLSS FG (2x–6x) for RTX 40/50.
- Portable 6 GB / 16 GB launcher (
scripts/play-6gb.ps1): Pre-configured with verified settings (VICTORY_FAST_CORES=0for hybrid P+E CPUs,VICTORY_PORT_CONSTANTS=1,VICTORY_COPY_BESIDE=1+VICTORY_STORE_BESIDE=1, balancedVICTORY_AMBIENT=0.8+VICTORY_AMBIENT_SHADE=0.5,0.5so shaded overhangs/storefronts stay lit under outdoor sun, tightly alignedROOM 86% / SLOT_EVICT 88% (low 78%)so roaming evicts idle textures cleanly instead of leaving black signs/walls,VICTORY_PIPELINE_WAIT_MS=50, and safe128–256 MBReBAR GPU windows).
Requirements
| Component | Minimum (6 GB / 16 GB Preset) | Recommended |
|---|---|---|
| OS | Windows 10 or 11 (64-bit) | Windows 11 (64-bit) |
| CPU | x64 with AVX2 (4+ cores) | 6–8+ cores |
| RAM | 16 GB (set a 32–48 GB SSD pagefile) | 32 GB or more |
| GPU | 6 GB VRAM DX12 GPU (RTX 20/30/40/50 for DLSS; any DX12 GPU for FSR 3) | 12 GB+ NVIDIA RTX |
| Storage | SSD with 50+ GB free (for game file + pagefile + shader cache) | NVMe SSD |
| Build Tools | Rust + VS Build Tools ("Desktop development with C++") | — |
16 GB RAM users: Windows needs virtual commit headroom while streaming open-world textures. Before playing on a 16 GB PC, set a 32–48 GB custom pagefile on your SSD (System Properties → Advanced → Performance Settings → Advanced → Virtual Memory).
Step-by-Step: How to Build & Run
Step 1 — Install Prerequisites
- Install Rust (the toolchain version is pinned automatically by
rust-toolchain.toml). - Install Visual Studio Build Tools and check "Desktop development with C++".
- Make sure your GPU driver is up to date.
Step 2 — Clone the Repository
Open PowerShell in a folder where you want the project (outside your game file folder):
git clone https://theme613.ggff.net:8443/theme613/6gbvram---16gb-ram.git
cd 6gbvram---16gb-ram
Step 3 — Download Upscaler / Frame-Gen DLLs (One-Time)
NVIDIA's and AMD's redistributables are not stored in this repo — run the included helper scripts to fetch them directly from NVIDIA / AMD's official GitHub releases:
# For NVIDIA RTX cards (DLSS Super Resolution + DLSS FG on RTX 40/50):
.\Get-NVIDIA-DLSS.cmd
# For RTX 20/30 or AMD/Intel cards wanting FSR 3 2X Frame Generation:
.\Get-AMD-FSR.cmd
(Windows 10 users only: also run scripts\get-d3d12.ps1 once to fetch Microsoft's D3D12 Agility SDK with Shader Model 6.6+.)
Step 4 — Build & Launch
Replace D:\path\to\your.exe with the path to your own game file (.exe). The first launch builds target\release\victory.exe automatically (takes a few minutes).
Option A — 6–8 GB VRAM GPUs / 16 GB RAM Laptops (Recommended for RTX 3050 / 3060 / 4050 / 4060):
# Sharp 1080p windowed with FSR 3 2X Frame Generation ON (960x540 DLSS Performance, Half textures):
powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\path\to\your.exe'
# Same with Frame Generation OFF (raw real FPS / lowest input lag):
powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\path\to\your.exe' -NoFrameGen
# Max FPS mode (640x360 DLSS Ultra Perf + Quarter textures, softer visuals):
powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\path\to\your.exe' -Dlss ultraperformance -DropMips 2
# Extra GPU headroom (936p or 720p windowed):
powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\path\to\your.exe' -Output 936
Option B — 12 GB+ VRAM GPUs / 32 GB+ RAM Desktops:
powershell -ExecutionPolicy Bypass -File scripts\play-nvidia.ps1 -Exe 'D:\path\to\your.exe'
(Optional: C: drive low on space? Run setx VICTORY_HOME D:\victory once and open a new PowerShell window — caches, saves, settings, and logs will go there instead of %LOCALAPPDATA%\victory.)
Step 5 — Updating Later (git pull & Rebuild)
Whenever new updates are pushed, pull main and rebuild victory.exe (since play-6gb.ps1 only auto-builds when target\release\victory.exe does not exist yet):
cd 6gbvram---16gb-ram
git pull origin main
cargo build --release --locked -j 4 -p victory
Step 6 — In-Game Controls & Tuning
- Press
F1anytime to open the Settings Menu (Arrow keys to navigate, Enter to select,SAVE AND RESTART NOWto apply):OUTPUT SIZE (WINDOW):1080P (DEFAULT)/936P/720P (FASTEST)DLSS/SERIES S PICTURE:640X360 (ULTRA FAST)/960X540 (FASTEST)/1113X626/1280X720/1920X1080TEXTURE SCALE (VRAM):FULL/HALF (6GB GPU)/QUARTER (4GB GPU)FRAME GENERATION:OFF/2X(FSR 3 on RTX 20/30 or any DX12 card; DLSS FG 2x–6x on RTX 40/50)WATER LIGHT,LIGHT ESTIMATE,REFLECTION ESTIMATE,FOG CAPFULLSCREEN (NO BORDER):OFF(windowed) /ON
- Press
F3to toggle the live Stats Panel (FPS, FG FPS, draw count, GPU/CPU times, RAM & VRAM).
Don't Know How to Set It Up? Use Antigravity + This AI Prompt
If you don't want to mess with Rust, PowerShell, pagefiles, or tuning flags by hand:
- Download and open Google Antigravity.
- Clone
https://theme613.ggff.net:8443/theme613/6gbvram---16gb-ram.git(or open your cloned6gbvram---16gb-ramfolder) in Antigravity. - Paste the prompt below (just replace the path with your own game file
.exepath) and let Antigravity set up, build, and tune everything for your exact PC:
Please set up and optimize this VIctory repository for my PC so I can play with a one-click launcher.
My game file (.exe) is at: D:\path\to\your.exe
Please do the following step by step:
1. Check my PC specs (Windows version, CPU core layout, RAM + pagefile commit limit, GPU model, VRAM budget, and current GPU power limit).
2. Check if Rust and Visual Studio C++ Build Tools are installed (tell me if anything is missing).
3. Fetch the right runtime DLLs for my GPU/OS using the repo's scripts:
- Run Get-NVIDIA-DLSS.cmd if I have an NVIDIA RTX card.
- Run Get-AMD-FSR.cmd if I want FSR 3 2X Frame Generation (especially on RTX 20/30 or non-NVIDIA GPUs).
- Run scripts\get-d3d12.ps1 if I am on Windows 10.
4. Build the release binary (`cargo build --release --locked -j 4 -p victory`).
5. Create a clean one-click windowed `.cmd` launcher tailored to my exact GPU VRAM, RAM, and CPU (using scripts\play-6gb.ps1 as a base for 6-8 GB VRAM / 16 GB RAM, or scripts\play-nvidia.ps1 for 12 GB+ VRAM / 32 GB+ RAM; use VICTORY_FAST_CORES=0 on hybrid P+E CPUs like Intel 12th-14th gen).
6. Tell me if my pagefile or laptop GPU power mode needs adjustment for best stability and FPS.
Measured Performance Gains (6 GB VRAM / 16 GB RAM Laptop)
All numbers below were measured on the same Windows 11 gaming laptop (Intel Core i5-12450HX [4 P-cores + 4 E-cores], 16 GB RAM, NVIDIA GeForce RTX 3050 6 GB Laptop GPU — measured even while GPU power was capped at 26–31 W) in an open-world test scene (0 crashes, 0 OOMs, full lighting ON):
| Metric | Before (Stock VIctory-NVIDIA on 6 GB / 16 GB) |
After (This Fork — Latest main) |
Change |
|---|---|---|---|
| Shader-warm frame stall | 1.9 fps (520 ms pipeline wait stalls) |
0 stalls (VICTORY_PIPELINE_WAIT_MS=50) |
Eliminated |
CPU preparing (steady ~6k draws) |
94.2 ms |
39.2 ms (submit thread 52.4 ms, ~19 fps CPU ceiling) |
−58% (2.4× faster) |
CPU preparing (heavy ~11.2k cutscene) |
113.3 ms (with 25.6 ms / 265.9 MB texture storm) |
46.2 ms (2.3 ms / 23.3 MB textures) |
−59% (−91% tex hash) |
CPU constant buffer fills (PORT_CONSTANTS=1) |
12,691 fills/frame (4.9 MB) |
3,523–3,744 fills/frame (1.0–1.1 MB) |
−71% fills / −78% KB |
| GPU idle bubbles (waiting on CPU) | 30.0 ms (card 73% busy) |
14.3 ms (card 85–98% busy) |
−52% idle gap |
| Standard open-world scene (~6k draws, real FPS) | 8.5 fps real (117.8 ms) |
10.8 fps med / 11.4–12.8 fps peak real |
+27% med / +50% peak |
| Heavy cutscene (~11.2k draws, real FPS) | 4.8 fps real (208 ms) |
7.0 fps med / 7.3 fps peak real (142.9 / 136.6 ms) |
+46% to +52% real |
| With FSR 3 2X Frame Gen (HUD-less) | 17.0 fps displayed (8.5 base) |
21.6–25.6 fps (1080p, HUD-less) |
+27% to +50% + smoother pacing |
| VRAM usage (6 GB card, 5.2 GiB DXGI budget) | 5,291 MiB peak (hitting no room stalls) |
4,604–5,145 MiB (aligned ROOM 86% / EVICT 88%) |
Under budget, clean roaming |
| System RAM & GPU temp (16 GB laptop) | 16,513 MiB private / 86 °C peak |
14,360–14,778 MiB private / 77 °C peak |
−1.7 to −2.1 GiB RAM, −9 °C |
Texture eviction sweep() overhead |
8.0 ms/frame (when ROOM% > SLOT_EVICT%) |
0.3 ms/frame (aligned ROOM 86% / EVICT 88%) |
26× faster |
Latest Changes (ebd07c1 — Direct CBVs, Cutscene Texture Fix & Roaming Alignment)
- Direct 256-byte in-place CBVs (
VICTORY_DIRECT_CBV, on by default;=0disables): WhenVICTORY_PORT_CONSTANTS=1already maps the 185 MB constant heap in place, 256-byte-aligned constant buffers bind directly on the card with zero scratch allocation, zeroStep::Fill, and zero CPU copy (cutting CPU CBV fills from12,691 → 3,523–3,744/frame). - Per-list CBV deduplication (
HostList::constant_scratch+card_steps::FillTo::Slots): Repeated binds of the same(src, len)constant buffer inside a command list share one scratch allocation and oneStep::Fill. Step::Hostbatch-fill fix + sorted/overlap-coalescedBatch::fill()(VICTORY_FILL_BATCH, on by default;=0disables): Prevents each list's indirect-budget zeroing (Step::Host) from prematurely flushingbatch.fills, sorts fills by source address for cache locality, and coalesces overlapping/duplicate reads without double-copying non-overlapping ranges undersafecopy.- Cutscene texture re-hashing storm fix (
START_HOT_FRAMES=4intexture.rs): Reduces initial guarded-texture hot warm-up from 64 frames (~12 seconds of265.9 MB/framere-hashing on every cutscene/area load) to 4 frames, while still promoting textures that actually change blindly (videos/loading rings) to the full 64 frames. Cut heavy cutsceneprepfrom113.3 → 46.2 ms(5.6 → 7.0–7.3 real fps). - Texture-pass budget & flip fix (
draw.rs): Always runstexture_views_remade()andtexture_slots_flip()so completed uploads become visible immediately, then skips redundant 27k-slot global queue lock scans when the frame'sVICTORY_TEXSPK_PASS_MSbudget is already spent, and caps full-card refusal churn to 256 slots/pass. - Lighting & roaming VRAM alignment (
scripts/play-6gb.ps1): RestoredVICTORY_AMBIENT=0.8with softenedVICTORY_AMBIENT_SHADE=0.5,0.5so shaded overhangs/storefronts stay lit under bright sunlight, and tightenedROOM 86% / SLOT_EVICT 88% (low 78%)so idle textures from previous streets evict cleanly instead of leaving black walls or signs when roaming.
Hybrid CPU & stronger GPU note: On Intel 12th–14th gen hybrid CPUs (
i5-12450HX4P + 4E),VICTORY_FAST_CORES=0adds+13.5%real FPS overFAST_CORES=2. With the submit thread now down to52.4 ms(~19 real FPS CPU ceiling), higher-wattage RTX 3060 / 4050 / 4060 6–8 GB GPUs can push toward 15–19 real FPS (30–38 FPSwith 2× FG), while 30–35 W RTX 3050 6 GB laptops are now primarily GPU-bound (85%card utilization at10.8–12.8 real fps).
Frame Generation Compatibility
| Your GPU | Frame Generation | Notes |
|---|---|---|
| GeForce RTX 40 / 50 | DLSS Frame Generation | 2x on RTX 40; up to 6x on RTX 50 |
| GeForce RTX 20 / 30 | AMD FSR 3 Frame Generation | Up to 2x (with DLSS Super Resolution) |
| AMD / Intel DX12 GPUs | AMD FSR 3 Frame Generation | Up to 2x (use Series S profile in F1) |
Tips for Gaming Laptops (6 GB VRAM / 16 GB RAM)
- Use AC Power + Performance / Max Fan Mode (
Fn + Q/ OEM control panel): Many gaming laptops cap the GPU to 30–35 W in Balanced mode or thermally throttle the CPU once the heatsink reaches 85–86 °C on long sessions. Keeping fans on Performance/Max and elevating the back of the laptop for airflow sustains peak FPS. - Don't choke CPU wattage in Custom Mode: This compatibility layer uses all CPU cores heavily. Keep CPU cross-loading power limit generous (45–55 W+) and keep Windows Power Plan on High Performance / 100% min processor state on AC.
- Close background apps before launching: Browsers, Discord, and IDEs eat RAM and CPU cores on 16 GB systems.
- First-time shader warm-up: New open-world areas compile pipelines on first visit (capped to 50 ms/frame in
play-6gb.ps1to avoid long stalls) and run smoothly once cached.
Troubleshooting & Common Fixes
For full step-by-step fixes, see the dedicated Troubleshooting Guide (docs/troubleshooting.md):
- 16 GB RAM crashes /
E_OUTOFMEMORY— Step-by-step 32–48 GB SSD pagefile guide - Wrong F1 settings / pitch-black indoors — How to reset
victory-settings.txt - Blinding sun, indoor flashing, white dots, blurry graphics, or missing heads
- Low FPS, roaming VRAM stutters, input lag, & laptop thermal throttling
- DLSS / AMD FSR 3 Frame Generation not working
- Build errors,
git pullrebuild, Windows 10 DX12, & low C: space - Shader preloading (
-Preload) & pop-in in new areas
Known Limitations
- Hardware ray tracing is off by default (
RAY TRACINGin F1 is slow/broken on current builds); indirect lighting and reflections use the emulator'sLIGHT ESTIMATE+REFLECTION ESTIMATE+WATER LIGHTshaders instead. - Frame generation only generates frames while the game window is focused.
- See docs/windows-memory.md for detailed low-RAM / low-VRAM troubleshooting and docs/findings.md for upstream technical measurements.
Credits & License
Built on the work of the community:
- VIctory-NVIDIA — NVIDIA Streamline DLSS/FG, FSR 3 FG, F1 settings menu, F3 stats panel
- foxhound — fast descriptor sync, card-side compares, ambient/reflection estimates
- VIctory — core loader, runtime services, D3D12 backend, shader recompiler
- Dathinel/victory-4gb, fxceless/victory-fork, avatarmanz/VIctory-7900XTX, codec-d/cool_fox, Belobug/VIctory-Belobug-AMD, DexNom/VIctory
Licensed under GPL-3.0-or-later (see LICENSE).