Triforce v0.4.0

What was merged from NX2navi (DLSS frame generation, AMD FSR 4 in Setup builds, texture detail by video memory, sprint, volume, frame caps, safer saves, the above-60 fixes), the ultrawide HUD at the screen edges, camera speed, movies without the AV1 Video Extension, the 5120x2880 + RenoDX HDR start fix, the renderer work of 11-14 and the first float changes of the lift.
This commit is contained in:
ruckus7382sfgsgdf
2026-11-15 06:39:00 -06:00
parent 183b05d8c4
commit 93eeb714c2
87 changed files with 5947 additions and 153 deletions

View File

@@ -1,6 +1,6 @@
/* (hookshot) The sound manager's job at 60 Hz and the physics solver's steps rounded up, under a Frame rate cap above 60: the
lifted f_80435300, f_838ceb80 and f_838cfc10 call these (nx2/oot_patches.py); host/oot_high_fps.h has why and the logic.
HOS_FPS_LOG (set): what they do, every 600 calls. */
/* (hookshot) The sound manager's job at 60 Hz, the physics solver's steps rounded up, the floors' carry, the height-field
surfaces' fixed steps and the ocarina recorder's clock, under a Frame rate cap above 60: the lifted code calls these
(nx2/oot_patches.py); host/oot_high_fps.h has why and the logic. HOS_FPS_LOG (set): what they do, every 600 calls. */
#include "hos.h"
#include "oot_high_fps.h"
#define WIN32_LEAN_AND_MEAN
@@ -64,3 +64,50 @@ uint32_t hos_oot_solver_steps(uint32_t game, uint32_t scaled_bits, uint32_t per_
}
return (uint32_t)steps;
}
/* The follow-surface updates' compare (f_8015d490, f_80159dc0, f_838baa40): what the physics' inverse step is compared with */
uint32_t hos_oot_floor_cut(void) {
const uint32_t cut = oot_floor_cut(__atomic_load_n(&hos_frame_seconds_bits, __ATOMIC_RELAXED));
if (fps_log()) {
static volatile LONG64 calls;
const LONG64 n = InterlockedIncrement64(&calls);
if (n % 600 == 1)
hos_log("oot: a floor's carry is cut to a tenth above an inverse step of %.1f (the game's 100)", oot_bits_float(cut));
}
return cut;
}
static FrameWhole sim_whole; /* (a table of the surfaces' own: sharing hos_frame_whole's, they and the waters' ripples would
take each other's slots in turn, each starting again without its remainder) */
static long long sim_calls, sim_given; /* (HOS_FPS_LOG's counts, under sim_lock) */
static SRWLOCK sim_lock = SRWLOCK_INIT; /* (the physics step's jobs) */
/* The fixed steps of f_83895f20, f_838a2660 and f_80652cb0: object, the manager or floor (its x19); quotient_bits, the update's
seconds over 1/60 s. The float the game's cut then takes */
uint32_t hos_oot_sim_steps(uint64_t object, uint32_t quotient_bits) {
const int t = timed();
long long given = -1;
AcquireSRWLockExclusive(&sim_lock);
const uint32_t bits = oot_sim_steps(&sim_whole, object, quotient_bits, t);
if (fps_log()) {
const float steps = oot_bits_float(bits);
if (steps > 0.0f && steps < 1000.0f) sim_given += (long long)steps;
if (!(++sim_calls % 600)) given = sim_given, sim_given = 0;
}
ReleaseSRWLockExclusive(&sim_lock);
if (given >= 0)
hos_log("oot: the water and floor surfaces got %lld fixed steps in the last 600 updates (quotient %.3f%s)", given,
oot_bits_float(quotient_bits), t ? ", fractions carried" : "");
return bits;
}
static float record_rem;
static SRWLOCK record_lock = SRWLOCK_INIT; /* (the ocarina manager's update alone runs the four places: a lock all the same) */
/* The ocarina recorder's clock (f_832b2690, f_832b32b0, f_832b6840): the frames it adds for the frame step */
uint32_t hos_oot_record_frames(uint32_t step_bits) {
AcquireSRWLockExclusive(&record_lock);
const uint32_t frames = oot_record_frames(&record_rem, step_bits, timed());
ReleaseSRWLockExclusive(&record_lock);
return frames;
}