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:
ruckus7382sfgsgdf
2026-11-18 12:06:48 -06:00
parent 72793f2231
commit a750a21025
54 changed files with 1806 additions and 114 deletions

View File

@@ -4234,6 +4234,7 @@ bool import_in_background(uint64_t guest, uint64_t size, const char** why) {
return true;
}
} // namespace
bool pools_mirrored() { return mirror_on(); } // ((Triforce, upstream 018a1d2e #2464) vk_draw.cpp uniform_range's default)
uint64_t device_vram_bytes() {
uint64_t vram = 0;
for (uint32_t h = 0; h < dev.memory.memoryHeapCount; h++)
@@ -4424,8 +4425,14 @@ bool mirror_pieces_on() {
static const bool on = [] {
const char* e = getenv("RX_VK_MIRROR_PIECES");
const bool can = dev.sparse_buffers && dev.features.sparseResidencyBuffer;
const bool v = can && (e ? atoi(e) != 0 : memory_trial_on());
logf("vk: mirrors in pieces: %s%s", v ? "on" : "off", !can ? " (no sparse residency buffers)" : e ? " (RX_VK_MIRROR_PIECES)" : "");
// ((Triforce, 11-18) not by default on NVIDIA before Turing (device IDs below 0x1e00: GTX 10 series, GTX 900): a GTX
// 1070 lost the GPU after the opening cutscene, the next submission stopped in its waits for a mirror's new pieces
// (VRAM 6.2 of 7 GB, textures being evicted), every time until RX_VK_MIRROR_PIECES=0; with it a new game played
// (#bug-tracker "Crash when starting a new game"). Whole mirrors there, as before the pieces)
const bool old_nvidia = dev.props.vendorID == 0x10de && dev.props.deviceID < 0x1e00;
const bool v = can && (e ? atoi(e) != 0 : !old_nvidia && memory_trial_on());
logf("vk: mirrors in pieces: %s%s", v ? "on" : "off", !can ? " (no sparse residency buffers)" : e ? " (RX_VK_MIRROR_PIECES)"
: old_nvidia ? " (NVIDIA before Turing: whole mirrors)" : "");
return v;
}();
return on;