mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-19 10:49:58 -04:00
Say in the log when the system's commit runs low under a page file that Windows sizes itself.
With the page file left to Windows the commit limit stays near the installed memory plus what the file held at the start, and on a 16 GB PC with a 16 GB card it ran low in Hyrule Field at 32 GB, where a fixed page file of 32 GB or more gave 49 GB and no low commit. The first "system commit low" line of a run is now followed, once, by a line that names the cause and the Windows setting, and the build kit's guide gives the same advice for 16 GB PCs. plat_page_file_managed reads the PagingFiles value once; on this PC (page file sized by Windows) it returns 1. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -1629,6 +1629,16 @@ static int commit_is_low(void) {
|
||||
rt_log("vk: system commit %s: %.0f of %.0f MB in use (this process %.0f MB); released textures kept %d, %.0f MiB "
|
||||
"of own memory%s", low ? "low" : "no longer low", used, limit, proc, nreleased, rel_bytes / 1048576.0,
|
||||
low ? ": dropping the stale ones" : "");
|
||||
// A page file Windows sizes grows only slowly and by little, so the limit stays near the installed memory plus
|
||||
// what the page file held at the boot: on a 16 GB PC with a 16 GB card it ran low in Hyrule Field at 32 GB,
|
||||
// and textures gave way (white or black ground). A fixed page file of 32 GB or more raised the limit to 49 GB.
|
||||
static int hinted;
|
||||
if (low && !hinted && plat_page_file_managed() == 1) {
|
||||
hinted = 1;
|
||||
rt_log("vk: the page file is sized by Windows, which grows it only slowly: a fixed page file of at least "
|
||||
"32 GB keeps the system's commit from running low (System > About > Advanced system settings > "
|
||||
"Performance Settings > Advanced > Virtual memory > Change: Custom size, then restart Windows)");
|
||||
}
|
||||
}
|
||||
sys_low = low;
|
||||
return commit_low = low || high;
|
||||
|
||||
Reference in New Issue
Block a user