[Performance / Memory] Challenge: Why does Victory consume 30–40+ GB RAM and 16–18 GB VRAM when Xbox Series X has only 16 GB unified memory? #260
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA#260
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@BlackBookOfficial on GitHub · 2026-11-27 20:15 UTC · original
The problem
I'm trying to understand how Victory's memory management works and, more importantly, why the memory footprint becomes so extraordinarily large compared to the original Xbox Series X hardware.
The Xbox Series X has 16 GB of unified GDDR6 memory, shared between CPU and GPU. Games are designed around that physical memory budget, with roughly 13.5 GB available to games.
Yet running GTA VI through Victory on my PC produces the following observations:
My system normally uses approximately 20–30 GB of RAM before launching Victory. During gameplay, total RAM usage approaches 60 GB.
Actual memory measurements
The following measurements were collected at 30-second intervals during a run:
In approximately two minutes, process-private memory increased by 26.7 GB.
System-wide committed memory increased by the same amount.
My original pagefile was approximately 19 GB, giving Windows a commit limit around 82 GB. The machine experienced severe stalls near that limit, followed by a title watchdog termination.
Increasing the pagefile to 64 GB raises the commit limit, but it does not explain or fix the underlying memory consumption.
Why I'm questioning the architecture
I understand that emulating Xbox unified memory on a PC with discrete NVIDIA graphics requires additional memory representations, shadow buffers, staging allocations, GPU resources, and synchronization.
However, that explanation alone doesn't justify unlimited growth or establish that the current memory footprint is necessary.
We have a game designed around a 16 GB unified-memory console, yet the emulator can consume tens of gigabytes of host memory while simultaneously allocating most of the RTX 3090's VRAM.
How much of this is genuinely required by emulation, and how much is unnecessary duplication, over-allocation, retained memory, or resource leakage?
I want to challenge the assumption that this level of memory consumption is unavoidable.
Existing findings
We've already investigated several potential causes.
Placed-view descriptor retention — PR #58
An independent test reportedly reduced:
This demonstrates that at least some excessive memory consumption comes from avoidable retention.
Other suspected sources include:
Previous layer counters included approximately 9.7 GB of game-filled GPU textures, 2.1 GB of buffer mirrors, 208 MB of texture staging, and 665 MB of spare scratch. These figures represent different allocation categories and must not automatically be added together as Windows private commit.
Challenge to developers and AI coding agents
If you're using Claude Code, OpenAI Codex/GPT, or another coding agent, I'd like to challenge you to investigate this problem directly.
Not just by asking an AI to suggest optimizations, but by having it inspect the actual memory-management implementation, instrument the code, run reproducible tests, and submit evidence-backed improvements.
The questions I'd like answered:
Where does the memory actually go? Break down process-private commit, guest memory, shadow allocations, retained pools, GPU-local allocations, and driver-related memory without double-counting.
Why does memory keep increasing? Determine whether the growth represents newly committed guest pages, live resources, cached resources, or allocations that should have been released.
Are we duplicating more memory than necessary? Identify unnecessary copies or resource representations while respecting guest-visible CPU/GPU memory coherence.
Are resources being retained after their useful lifetime? Examine descriptor tables, texture indexes, snapshots, command-list scratch, pipeline libraries, and allocation pools.
Can memory consumption stabilize? The goal is to reach a bounded working set during extended gameplay rather than continuously approaching the Windows commit limit.
Can we reduce memory consumption without sacrificing FPS or correctness? A change that saves RAM but introduces GPU stalls, stale geometry, rendering corruption, or device removal is not a successful fix.
What I'd like contributors to provide
Please share actual diagnostic results rather than theoretical estimates.
Ideally, include:
A graph showing memory growth over 10–30 minutes, alongside a breakdown of the allocations responsible, would be especially useful.
The objective
I'm not expecting an RTX 3090 to reproduce the Xbox Series X's unified-memory architecture perfectly.
I am questioning whether consuming 30–40+ GB of additional system memory alongside 16–18 GB of VRAM is a necessary consequence of emulation, or evidence that Victory's memory management has substantial room for improvement.
The goal is not simply to increase the pagefile until the game stops crashing.
The goal is to understand where every major allocation comes from, eliminate unnecessary retention and duplication, and make long gameplay sessions stable without exhausting system memory.
If you have access to NVIDIA hardware and an AI coding agent, I'd genuinely encourage you to take a shot at this.
Let's see whether we can get measurable improvements backed by actual code changes and reproducible tests.
@trustno1-coder on GitHub · 2026-11-27 20:59 UTC · original
Thanks for the report. v2026.11.27.6 is out (https://github.com/trustno1-coder/VIctory-NVIDIA/releases/tag/v2026.11.27.6). Since this was posted, releases from v2026.11.27.4 on include:
If you have time, please try .6 and post new numbers or a new log here. It helps to see what changed on your PC.
@trustno1-coder on GitHub · 2026-11-27 21:09 UTC · original
Duplicate of #191 (memory that grows through a session). Closing this one so the crash is tracked in one place: please follow #191, and post new logs there. v2026.11.27.6 (https://github.com/trustno1-coder/VIctory-NVIDIA/releases/tag/v2026.11.27.6) has today's other crash fixes.