Continuous memory growth and insufficient resource reclamation #1620

Closed
opened 2026-11-28 22:28:54 +00:00 by BlackBookOfficial · 2 comments
BlackBookOfficial commented 2026-11-28 22:28:54 +00:00 (Migrated from github.com)
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by BlackBookOfficial on 2026-11-28T22:28:54Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:6671907608 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1620). Originally posted by [BlackBookOfficial](https://github.com/BlackBookOfficial) on 2026-11-28T22:28:54Z. --- 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-actions[bot] commented 2026-11-28 22:29:02 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by github-actions[bot] on 2026-11-28T22:29:02Z.


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)

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7246766455 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1620#issuecomment-7246766455). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-28T22:29:02Z. --- 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)
trustno1-coder commented 2026-11-30 15:41:43 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-30T15:41:43Z.


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.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7283423220 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1620#issuecomment-7283423220). Originally posted by [trustno1-coder](https://github.com/trustno1-coder) on 2026-11-30T15:41:43Z. --- 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.
Sign in to join this conversation.
No labels
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.

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