mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-25 18:48:51 -04:00
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:
@@ -45,3 +45,17 @@ static inline uint32_t frame_whole(FrameWhole *w, uint64_t at, uint32_t amount_b
|
||||
w->rem[slot] = sum - (float)whole;
|
||||
return whole;
|
||||
}
|
||||
|
||||
/* (the whole frames of the amount, times a whole number of substeps each, for a counter that runs that many substeps a frame:
|
||||
the water's ripple simulation, f_800672e0). The game cuts the amount and then multiplies, so above 60 fps a frame ran all its
|
||||
substeps or none, and the ripples stood still for a frame and then jumped. With the carry the substeps are
|
||||
handed out instead, their fractions kept per counter: 2 or 3 of 4 a frame at 108 fps. Without it, cut as the game cuts it. */
|
||||
static inline uint32_t frame_whole_times(FrameWhole *w, uint64_t at, uint32_t amount_bits, uint32_t times, int carry) {
|
||||
float amount;
|
||||
memcpy(&amount, &amount_bits, 4);
|
||||
if (!carry) return frame_whole_cut(amount) * times;
|
||||
const float scaled = amount * (float)times;
|
||||
uint32_t scaled_bits;
|
||||
memcpy(&scaled_bits, &scaled, 4);
|
||||
return frame_whole(w, at, scaled_bits, 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user