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

23
tests/nativefp_cpu.c Normal file
View File

@@ -0,0 +1,23 @@
/* Baseline-compiled feature probe, run before either ISA-specific test driver. */
#include <cpuid.h>
#include <stdlib.h>
int main(int argc, char **argv) {
unsigned a, b, c, d;
if (argc != 2 || !__get_cpuid(1, &a, &b, &c, &d)) return 1;
/* x86-64-v2: SSE3, SSSE3, CMPXCHG16B, SSE4.1/4.2 and POPCNT. */
const unsigned v2 = (1u << 0) | (1u << 9) | (1u << 13) | (1u << 19) | (1u << 20) | (1u << 23);
if ((c & v2) != v2) return 1;
if (!__get_cpuid(0x80000001u, &a, &b, &c, &d) || !(c & (1u << 0))) return 1; /* LAHF/SAHF */
if (!atoi(argv[1])) return 0;
if (!(c & (1u << 5))) return 1; /* LZCNT */
if (!__get_cpuid(1, &a, &b, &c, &d)) return 1;
/* FMA, MOVBE, XSAVE, OSXSAVE, AVX and F16C. */
const unsigned v3 = (1u << 12) | (1u << 22) | (1u << 26) | (1u << 27) | (1u << 28) | (1u << 29);
if ((c & v3) != v3) return 1;
__asm__ volatile ("xgetbv" : "=a" (a), "=d" (d) : "c" (0));
if ((a & 6u) != 6u) return 1; /* OS saves XMM and YMM state. */
if (!__get_cpuid_count(7, 0, &a, &b, &c, &d)) return 1;
const unsigned v3b = (1u << 3) | (1u << 5) | (1u << 8); /* BMI1, AVX2, BMI2 */
return (b & v3b) != v3b;
}