[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

Closed
opened 2026-11-27 20:16:09 +00:00 by github-bot · 2 comments
Owner

@⁠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:

  • GPU: NVIDIA RTX 3090, 24 GB VRAM
  • CPU: AMD Ryzen 9 7950X
  • System RAM: 64 GB DDR5
  • Observed VRAM usage: approximately 16–18 GB
  • Observed additional system RAM usage: over 30 GB
  • Peak process private memory: 37.8 GB
  • Peak system-wide committed memory: 79.6 GB

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:

Time      Process Private    System Commit
20:41:57     11.1 GB           52.9 GB
20:42:27     26.0 GB           67.7 GB
20:43:27     32.0 GB           73.7 GB
20:43:57     37.8 GB           79.6 GB
20:44:58     37.3 GB           79.0 GB

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:

  • Placed-view shapes: 4.19 million → 121,000
  • Process private memory: 23.4 GB → 20.9 GB

This demonstrates that at least some excessive memory consumption comes from avoidable retention.

Other suspected sources include:

  • Guest-memory reservations and committed physical pages
  • Shadow copies and buffer mirrors
  • GPU textures and render targets
  • Texture upload/readback staging
  • Snapshot and scratch pools
  • Pipeline-library serialization
  • Descriptor/view metadata
  • Resource indexes retaining dead allocations
  • Resources remaining alive after the guest no longer needs them

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:

  1. 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.

  2. 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.

  3. Are we duplicating more memory than necessary? Identify unnecessary copies or resource representations while respecting guest-visible CPU/GPU memory coherence.

  4. Are resources being retained after their useful lifetime? Examine descriptor tables, texture indexes, snapshots, command-list scratch, pipeline libraries, and allocation pools.

  5. Can memory consumption stabilize? The goal is to reach a bounded working set during extended gameplay rather than continuously approaching the Windows commit limit.

  6. 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:

  • Hardware specifications and Victory commit/branch
  • Process private bytes and system-wide commit over time
  • Dedicated and shared GPU memory usage
  • Per-subsystem live, cached, and retained allocation sizes
  • Measurements before and after the proposed change
  • Comparable gameplay scenarios and test duration
  • FPS/frame-time impact
  • Any correctness regressions or crashes

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.

**@⁠BlackBookOfficial** on GitHub · 2026-11-27 20:15 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/260) ## 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: - **GPU:** NVIDIA RTX 3090, 24 GB VRAM - **CPU:** AMD Ryzen 9 7950X - **System RAM:** 64 GB DDR5 - **Observed VRAM usage:** approximately 16–18 GB - **Observed additional system RAM usage:** over 30 GB - **Peak process private memory:** 37.8 GB - **Peak system-wide committed memory:** 79.6 GB 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: ```text Time Process Private System Commit 20:41:57 11.1 GB 52.9 GB 20:42:27 26.0 GB 67.7 GB 20:43:27 32.0 GB 73.7 GB 20:43:57 37.8 GB 79.6 GB 20:44:58 37.3 GB 79.0 GB ``` 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: - Placed-view shapes: 4.19 million → 121,000 - Process private memory: 23.4 GB → 20.9 GB This demonstrates that at least some excessive memory consumption comes from avoidable retention. Other suspected sources include: - Guest-memory reservations and committed physical pages - Shadow copies and buffer mirrors - GPU textures and render targets - Texture upload/readback staging - Snapshot and scratch pools - Pipeline-library serialization - Descriptor/view metadata - Resource indexes retaining dead allocations - Resources remaining alive after the guest no longer needs them 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: 1. **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. 2. **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. 3. **Are we duplicating more memory than necessary?** Identify unnecessary copies or resource representations while respecting guest-visible CPU/GPU memory coherence. 4. **Are resources being retained after their useful lifetime?** Examine descriptor tables, texture indexes, snapshots, command-list scratch, pipeline libraries, and allocation pools. 5. **Can memory consumption stabilize?** The goal is to reach a bounded working set during extended gameplay rather than continuously approaching the Windows commit limit. 6. **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: - Hardware specifications and Victory commit/branch - Process private bytes and system-wide commit over time - Dedicated and shared GPU memory usage - Per-subsystem live, cached, and retained allocation sizes - Measurements before and after the proposed change - Comparable gameplay scenarios and test duration - FPS/frame-time impact - Any correctness regressions or crashes 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 20:16:09 +00:00
Author
Owner

@⁠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:

  • a fix for memory that kept growing through a session (PR #58), behind late-session slowdowns, full RAM/VRAM and coloured blocks;
  • a fix for very long frames when the low memory range filled up (PR #88).

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 20:59 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/260#issuecomment-7228034085) 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: - a fix for memory that kept growing through a session (PR #58), behind late-session slowdowns, full RAM/VRAM and coloured blocks; - a fix for very long frames when the low memory range filled up (PR #88). 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.
Author
Owner

@⁠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.

**@⁠trustno1-coder** on GitHub · 2026-11-27 21:09 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/260#issuecomment-7228181430) 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.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA#260
No description provided.