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

33
gpu/vk/temporal_jitter.h Normal file
View File

@@ -0,0 +1,33 @@
// (Triforce) The upscaler's jitter (the scene's size and the jitter sequence's length) crosses from the replay to the game's
// thread (host/rx_backend.c hos_dlss_jitter_clip). It was three atomics read one at a time, by three questions of the host:
// a resize or a scale change between them gave the host one frame's jitter of one size with the other's sequence. Now one
// sample, published and read whole under a lock of its own (never the upscaler's: the GPU's and NGX's work stays out of it).
#pragma once
#include <cstdint>
#include <mutex>
#include "vk_api.h"
namespace mkwvk {
class TemporalJitter {
std::mutex mu;
MkwVkJitter sample{};
uint64_t frame = 0;
public:
/// One upscale's sample, of the frame `at` (texture_frame_no); a size or length of 0: none
void publish(uint32_t width, uint32_t height, uint32_t phases, uint64_t at) {
std::lock_guard lock(mu);
sample = width && height && phases ? MkwVkJitter{width, height, phases} : MkwVkJitter{};
frame = at;
}
/// The last one, all zero when none was published or it is more than 30 frames old at `now`
MkwVkJitter read(uint64_t now) {
std::lock_guard lock(mu);
return frame && now >= frame && now - frame <= 30 ? sample : MkwVkJitter{};
}
};
} // namespace mkwvk