Process memory line: console section views no longer count as named private bytes #4204

Closed
AirKyzzZ wants to merge 1 commit from upstream-pr/4204 into main
AirKyzzZ commented 2026-11-30 17:22:47 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by AirKyzzZ on 2026-11-30T17:22:47Z.


The process memory: line computes "named" as census.private[0] + census.mapped[0] + ours and "unnamed" as PagefileUsage - named. The console section views (mapped[0]) are views of the title's pagefile sections, so they are not in PagefileUsage at all, and adding them hid that much of the unaccounted private memory.

On a 16 GB / RTX 2060 rig at world load the line read "named 15638 MB, unnamed 1611 MB" with 7862 MB of console views, which looks like almost everything is accounted for. Without the views it is about 7.8 GB named and 9.5 GB unnamed, which is what actually needs explaining on small-RAM PCs (the process heaps held 1.7 GB in the same line, so most of it is neither ours nor the driver's heaps).

One-line change in procmem.rs, the rest of the line is untouched.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5570233527 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4204). Originally posted by [AirKyzzZ](https://github.com/AirKyzzZ) on 2026-11-30T17:22:47Z. --- The `process memory:` line computes "named" as `census.private[0] + census.mapped[0] + ours` and "unnamed" as `PagefileUsage - named`. The console section views (`mapped[0]`) are views of the title's pagefile sections, so they are not in `PagefileUsage` at all, and adding them hid that much of the unaccounted private memory. On a 16 GB / RTX 2060 rig at world load the line read "named 15638 MB, unnamed 1611 MB" with 7862 MB of console views, which looks like almost everything is accounted for. Without the views it is about 7.8 GB named and 9.5 GB unnamed, which is what actually needs explaining on small-RAM PCs (the process heaps held 1.7 GB in the same line, so most of it is neither ours nor the driver's heaps). One-line change in `procmem.rs`, the rest of the line is untouched.
trustno1-coder commented 2026-12-01 18:45:41 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-12-01T18:45:41Z.


Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7321491641 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4204#issuecomment-7321491641). Originally posted by [trustno1-coder](https://github.com/trustno1-coder) on 2026-12-01T18:45:41Z. --- Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

Pull request closed

Sign in to join this conversation.
No reviewers
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!4204
No description provided.