Continuous memory growth and insufficient resource reclamation #1620

Closed
opened 2026-11-28 22:30:11 +00:00 by github-bot · 2 comments
Owner

@⁠BlackBookOfficial on GitHub · 2026-11-28 22:28 UTC · original

I've been looking deeper into Victory's memory management and noticed some concerning behavior that deserves more attention from the community.

A significant amount of memory appears to be loaded or retained even when the associated resources are unmapped. Additionally, memory flushing and reclamation appear to be incomplete or insufficient, resulting in continuously increasing RAM usage throughout gameplay.

I suspect we are accumulating resources that are no longer actively used, including idle allocations, stale resource copies and potentially redundant backing memory.

Areas worth looking into

  • Why unmapped resources are still being loaded or retained in memory.
  • Whether unused and idle resources are being properly released.
  • Whether memory flushing and reclamation mechanisms are functioning as intended.
  • Resource lifetimes, reference counting and deferred destruction.
  • Whether texture pools, staging buffers and cached resource copies continue growing unnecessarily.
  • Whether memory that has been released by the game is also properly reclaimed on the host side.
  • Whether Victory responds adequately to system memory pressure.
  • Whether redundant allocations can be eliminated rather than simply reclaimed afterward.

Why this matters

This may be more than just a high memory usage problem. Continuously accumulating unnecessary resources could contribute to:

  • Increased CPU preparation overhead.
  • Unnecessary memory transfers.
  • Resource management overhead.
  • Increased paging and stuttering.
  • Degrading performance during longer gameplay sessions.
  • Instability and crashes on systems with less available RAM.

The objective should not simply be to increase the pagefile, raise memory limits or introduce more aggressive allocation thresholds. We should aim to ensure that Victory only retains memory that is genuinely required and properly reclaims resources once they are no longer needed.

Community effort

I'd encourage everyone working on Victory, including developers using AI coding agents, to take a closer look at the entire memory lifecycle.

Rather than focusing exclusively on individual allocations or isolated memory leaks, it would be valuable to examine how allocation, mapping, residency, caching, unmapping, flushing and reclamation work together.

There could be substantial opportunities here to improve memory efficiency, long-session stability and potentially overall gameplay performance.

If you discover anything, implement a potential improvement or identify a problematic resource lifecycle, please share your findings here so we can collaborate instead of duplicating efforts.

Let's work toward solving the underlying memory management problems rather than continuously accommodating growing memory consumption.

**@⁠BlackBookOfficial** on GitHub · 2026-11-28 22:28 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1620) I've been looking deeper into Victory's memory management and noticed some concerning behavior that deserves more attention from the community. A significant amount of memory appears to be loaded or retained even when the associated resources are unmapped. Additionally, memory flushing and reclamation appear to be incomplete or insufficient, resulting in continuously increasing RAM usage throughout gameplay. I suspect we are accumulating resources that are no longer actively used, including idle allocations, stale resource copies and potentially redundant backing memory. ### Areas worth looking into - Why unmapped resources are still being loaded or retained in memory. - Whether unused and idle resources are being properly released. - Whether memory flushing and reclamation mechanisms are functioning as intended. - Resource lifetimes, reference counting and deferred destruction. - Whether texture pools, staging buffers and cached resource copies continue growing unnecessarily. - Whether memory that has been released by the game is also properly reclaimed on the host side. - Whether Victory responds adequately to system memory pressure. - Whether redundant allocations can be eliminated rather than simply reclaimed afterward. ### Why this matters This may be more than just a high memory usage problem. Continuously accumulating unnecessary resources could contribute to: - Increased CPU preparation overhead. - Unnecessary memory transfers. - Resource management overhead. - Increased paging and stuttering. - Degrading performance during longer gameplay sessions. - Instability and crashes on systems with less available RAM. The objective should not simply be to increase the pagefile, raise memory limits or introduce more aggressive allocation thresholds. We should aim to ensure that Victory only retains memory that is genuinely required and properly reclaims resources once they are no longer needed. ### Community effort I'd encourage everyone working on Victory, including developers using AI coding agents, to take a closer look at the entire memory lifecycle. Rather than focusing exclusively on individual allocations or isolated memory leaks, it would be valuable to examine how allocation, mapping, residency, caching, unmapping, flushing and reclamation work together. There could be substantial opportunities here to improve memory efficiency, long-session stability and potentially overall gameplay performance. If you discover anything, implement a potential improvement or identify a problematic resource lifecycle, please share your findings here so we can collaborate instead of duplicating efforts. Let's work toward solving the underlying memory management problems rather than continuously accommodating growing memory consumption.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 22:30:11 +00:00
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-28 22:29 UTC · original

Please attach both logs from the run that went wrong. Without them we can only guess. Paste %LOCALAPPDATA% into the address bar of File Explorer to get there.

  1. The play log, in %LOCALAPPDATA%\victory\logs\: the newest victory-nvidia-play-<date>-<time>-<number>.log (from victory.exe) or victory-nvidia-<date>-<time>.log (from the script launcher). The window shows its path at the start, on the line Log: ....
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newest victory-<date>-<time>-<number>.crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\.

Also say which GPU, Windows version (10 or 11)

**@⁠github-actions[bot]** on GitHub · 2026-11-28 22:29 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1620#issuecomment-7246766455) Please attach both logs from the run that went wrong. Without them we can only guess. Paste `%LOCALAPPDATA%` into the address bar of File Explorer to get there. 1. The play log, in `%LOCALAPPDATA%\victory\logs\`: the newest `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or `victory-nvidia-<date>-<time>.log` (from the script launcher). The window shows its path at the start, on the line `Log: ...`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and, if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\`. Also say which GPU, Windows version (10 or 11)
Author
Owner

@⁠trustno1-coder on GitHub · 2026-11-30 15:41 UTC · original

Closing this because it was opened before v2026.11.29.01, and a great deal has changed since then. The latest release is v2026.11.30.01.

If this still happens, or still applies, on the latest release, please open a new issue. For a bug, attach both logs from that run:

  1. The play log: the newest victory-nvidia-play-<date>-<time>-<number>.log in %LOCALAPPDATA%\victory\logs\.
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, plus the newest .crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\ if there is one from that run.
**@⁠trustno1-coder** on GitHub · 2026-11-30 15:41 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1620#issuecomment-7283423220) Closing this because it was opened before v2026.11.29.01, and a great deal has changed since then. The latest release is [v2026.11.30.01](https://github.com/trustno1-coder/VIctory-NVIDIA/releases/tag/v2026.11.30.01). If this still happens, or still applies, on the latest release, please open a new issue. For a bug, attach both logs from that run: 1. The play log: the newest `victory-nvidia-play-<date>-<time>-<number>.log` in `%LOCALAPPDATA%\victory\logs\`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, plus the newest `.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\` if there is one from that run.
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#1620
No description provided.