mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-20 08:39:58 -04:00
Triforce v0.5.1
Hotfix for v0.5.0: crashes (NX2navi game folder refused by Setup, heap-full retries, GTX 10 series noise pass and whole VRAM mirrors, code-patch mods kept with their code, no page file warning), graphics (DLSS with frame generation, DLSS coming back, AMD storage buffer alignment, mesh index map, shared memory barrier, shader conversions, integrated GPUs' uniform snapshot, a Mesh shaders row), controls (microphone after restart, button prompts with a mod's size table, sprint vs Hide text, native mouse camera, controller after Restart now), Setup's Preparing shaders step, and the Linux link fix.
This commit is contained in:
@@ -54,14 +54,17 @@ static int MessageBoxA(void *w, const char *text, const char *caption, unsigned
|
||||
int hos_sdl_load(void) { return 0; }
|
||||
@@CODE@@
|
||||
int main(void) {
|
||||
/* ((Triforce, 11-18) no swap at all below 40 GB of memory says so too: 16384 + 0 and 32768 + 0 now; 65536 + 0 not) */
|
||||
static const unsigned long long cases[][3] = {
|
||||
{8192, 0, 1}, {8192, 2047, 1}, {8192, 2048, 0}, {16384, 0, 0}, {10239, 0, 1}, {10240, 0, 0}};
|
||||
{8192, 0, 1}, {8192, 2047, 1}, {8192, 2048, 0}, {16384, 0, 1}, {10239, 0, 1}, {10240, 1, 0}, {32768, 0, 1},
|
||||
{32768, 1024, 0}, {65536, 0, 0}};
|
||||
char text[512];
|
||||
for (size_t i = 0; i < sizeof cases / sizeof *cases; i++) {
|
||||
const int got = memory_notice_text(cases[i][0], cases[i][1], text, sizeof text);
|
||||
printf("case %llu MB + %llu MB swap: %s\n", cases[i][0], cases[i][1], got ? "notice" : "none");
|
||||
if (got != (int)cases[i][2]) return printf("FAIL: wrong answer\n"), 1;
|
||||
if (got && (!strstr(text, "8.0 GB") && cases[i][0] == 8192)) return printf("FAIL: the text has no size: %s\n", text), 1;
|
||||
if (got && cases[i][0] == 32768 && !strstr(text, "page file")) return printf("FAIL: no page file not named: %s\n", text), 1;
|
||||
}
|
||||
setenv("HOS_HEADLESS", "1", 1);
|
||||
memory_notice();
|
||||
|
||||
Reference in New Issue
Block a user