Triforce v0.8.4

Smoother frames and less memory: a compact pipeline cache on NVIDIA, the renderer and game-code profiles, native float in the hot game code, late GPU work left as before. A PC whose NVIDIA shader cache drops the game's gets a driver cache folder of its own. Fixes from the 0.8.3 reports: RenoDX's encoder and tone mapping matched on NVIDIA again; the out-of-memory notice at the next start; no microphone open without a recording device; Evil HD undergrowth kept to 80/120 m; the FG HUD layer keeps what it learned; a stick past 92% is a full push; the DualSense jack read only when used; Linux Save Select, Quit and Restart, and the Linux launcher's sound; the update check uses the program's own version.
This commit is contained in:
ruckus7382sfgsgdf
2026-11-26 20:04:11 -06:00
parent ecb4d5cc99
commit 2df08c751e
45 changed files with 2828 additions and 567 deletions

View File

@@ -2563,6 +2563,36 @@ static void memory_notice(void) {
ram = ((unsigned long long)si.totalram * si.mem_unit) >> 20, swap = ((unsigned long long)si.totalswap * si.mem_unit) >> 20;
#else
return;
#endif
#ifdef _WIN32
/* ((Triforce, 11-26) the last session reached Windows' commit limit (mkw_glue.c hos_commit_limit_mark): said now, once,
before play, with this PC's RAM and page file. Its marker is removed when said (a lab run, headless, leaves it) */
{
char mark[MAX_PATH];
const DWORD len = hos_game_path_a(mark, MAX_PATH);
char *slash = len ? strrchr(mark, '\\') : NULL;
if (slash) {
snprintf(slash + 1, (size_t)(mark + MAX_PATH - slash - 1), "triforce_commit_limit.txt");
FILE *f = fopen(mark, "r");
if (f) {
fclose(f);
hos_log("boot: the last session reached Windows' commit limit (%llu MB of memory, %llu MB of page file): said "
"once now (%s)", ram, swap, mark);
if (!getenv("HOS_HEADLESS")) {
char said[900];
snprintf(said, sizeof said,
"The last time Triforce ran, Windows ran out of memory for it: this PC's RAM (%.1f GB) and page file "
"(%.1f GB) were full. That is what closed or froze the game.\n\nTo fix it, let Windows size the page "
"file: search \"Adjust the appearance and performance of Windows\", Advanced tab, Virtual memory: "
"Change, tick \"Automatically manage paging file size for all drives\", OK, then restart the PC. "
"Closing other programs while playing helps too.",
ram / 1024.0, swap / 1024.0);
MessageBoxA(NULL, said, "Triforce: out of memory last time", MB_OK | MB_ICONWARNING);
remove(mark);
}
}
}
}
#endif
char text[512];
if (!memory_notice_text(ram, swap, text, sizeof text)) {