Lower the engine's use of the PC's memory (RAM) #21
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?
Imported from edsuuu/VI-BR-PORT. Originally posted by edsuuu on 2026-11-28T22:22:27Z.
The engine holds a lot of the PC's memory: the game process goes past 20 GB in the opening and on the boat (24.8 GB seen on 28/11, 9.8 GB a few seconds after start), which leaves 16 GB machines short and pushes Windows into paging.
Where it goes
The console has one memory for the CPU and the GPU; on the PC the title's memory, the copies we keep of its buffers and textures, and what the card's memory spills into all live in RAM at once. The map of what we hold (from the diagnostics runs of 27 and 28/11) is in the work of
agente/api-ram, now ondev:VICTORY_RAM_LOG(on): one line a minute with what the engine holds, by kind (windows of title memory, copies of the title's buffers, the lists' scratch, staging blocks, kept send buffers).VICTORY_LOW_RAM(off): smaller caps on what is kept for reuse (VICTORY_SCRATCH_KEPT_MB,VICTORY_SEND_KEPT_MB,VICTORY_STAGING_BLOCKS_KEPT,VICTORY_IDLE_LISTS_MAX), about 0.6 to 1.3 GB less (estimate).VICTORY_WINDOW_SHARE(off,1or2): windows of title memory shared, up to 0.2 GB (prison) to 1.6 GB (boat) less (estimate).VICTORY_RAM_ASSUME_FREE_MB: a large machine behaves like a 16 GB one, to test it.None of these were measured in the game yet.
To do
VICTORY_RAM_LOGin the opening, the prison and the boat, with each switch off and on; keep the ones that lower memory without costing frames or breaking the picture, and turn them on by default (or by the launcher's profile for 16 GB machines).Evictof resources the frame does not use.Related: PR #9 (a LowVram profile for 6 GB cards) works on the card's memory, not the PC's.