Triforce v0.8.0

Evil HD (SMAA Ultra, 16x filtering, full textures, ambient occlusion with bounce light, sunlight shafts, foliage drawn 4x as far, the remastered texture pack's loader and the launcher's download of it), FSR 3.1 frame generation for every GPU, Intel XeSS, FSR 4 model choice, ReShade presets, Auto (this PC), HUD placement, the options menu in 13 languages, a second input for every control, hold to toggle, DualSense speaker and haptics, NFC from the player's own dumps, the above-60 fps game fixes, the Debug tab's flight and Inventory fixes, the launcher's full settings, and over 250 fixes.
This commit is contained in:
ruckus7382sfgsgdf
2026-11-25 10:21:32 -06:00
parent 861702476a
commit 4fa4f9188b
881 changed files with 179428 additions and 15581 deletions

View File

@@ -261,6 +261,21 @@ void reflex_submit_ends() {
if (r.frame_marked) mark(VK_LATENCY_MARKER_RENDERSUBMIT_END_NV);
}
// ((Triforce) 11-24) Each of the game's queue submits tagged with the frame its GPU work belongs to: without it the driver
// guesses the frame of each submit, and with frame generation the display thread's copies sit between the game's frames, so
// its "GPU end" of a frame could read hundreds of milliseconds (an RTX 5080 at 4x, measured elsewhere). Only the game's
// rendering (vk_replay.cpp's recordings): the display thread's presents keep their present ids alone. RX_VK_REFLEX_SUBMIT_IDS=1
const void* reflex_submit_id(const void* next) {
static const bool wanted = getenv("RX_VK_REFLEX_SUBMIT_IDS") && atoi(getenv("RX_VK_REFLEX_SUBMIT_IDS")) == 1;
if (!wanted) return next;
Reflex& r = rx();
std::lock_guard lk(r.mu);
if (!on() || !r.frame_marked) return next; // (before the frame's sleep returned: the driver is told nothing)
thread_local VkLatencySubmissionPresentIdNV s{VK_STRUCTURE_TYPE_LATENCY_SUBMISSION_PRESENT_ID_NV};
s.pNext = next, s.presentID = r.id;
return &s;
}
const void* reflex_present_id(const void* next) {
Reflex& r = rx();
std::lock_guard lk(r.mu);
@@ -297,6 +312,7 @@ bool sleep_now() {
}
VkSemaphoreWaitInfo w{VK_STRUCTURE_TYPE_SEMAPHORE_WAIT_INFO};
w.semaphoreCount = 1, w.pSemaphores = &r.wake, w.pValues = &value;
const rec::Settled settled; // ((Triforce) RX_VK_RECORDER_PARTS: the driver signals it, no part of the replay's)
{
// ((Triforce, 11-22, SYNC-27) the driver's sleep for latency is pacing, not a wait for the GPU's work: not counted)
const ::gpu_wait_kinds::Exclude pacing;