Triforce v0.9.0

Character tab, faster renderer defaults, HD rumble shipped, and the 11-30 bug pass: ending softlock below 60 fps, adult first-night lock, Intel Arc robust buffers, adult map, randomizer load order.
This commit is contained in:
ruckus7382sfgsgdf
2026-11-30 20:55:14 -06:00
parent 8cb23131f9
commit 822ee913bc
86 changed files with 8128 additions and 438 deletions

View File

@@ -3,8 +3,10 @@
The game's movie player counts its updates while a movie plays, and a cutscene that shows a movie places its narration, its
rumble and its end by that count. The movie's picture and sound follow the clock, so at 120 fps the cues came twice too early:
narration lines started over each other. nx2/oot_patches.py makes the count's step hos_movie_frames(player), and host/nn_vi.c
answers 1 while the host gives no frame time (a cap of 60: as shipped) and the frames' time in 60ths, the rest carried to the
player's next update, while it does (HOS_FPS_MOVIE=0: 1 then too, for comparisons). A game version whose code differs keeps
answers 1 while the host gives no frame time at 60 fps (as shipped), the frames' time in 60ths, the rest carried to the
player's next update, while it does, and (11-30) below 60 fps the game's own step, 60 / its rate: one an update had the ending's
second staff roll end at half its count at 30 fps, its end screen never opened, the game stuck before "The End"
(HOS_FPS_MOVIE=0: 1 always, for comparisons). A game version whose code differs keeps
its own code and the build goes on with a warning.
python -I -B tests/test_movie_frame_count.py [--cc gcc]
@@ -60,6 +62,9 @@ static void ReleaseSRWLockExclusive(SRWLOCK *l) { CHECK(*l); *l = 0; }
volatile uint32_t hos_frame_seconds_bits;
static int movies_seen; /* (each update says a movie plays, for the frame pacing: host/nn_vi.c movie_seen, tests/test_pace_handoff.py) */
static void movie_seen(void) { movies_seen++; }
/* (host/nn_vi.c movie_game_rate: the game's rate under 60, 0 at 60) */
static int game_rate;
static int movie_game_rate(void) { return game_rate; }
@HOST@
/* (the lifted update with the patch, on a small guest: the count at +760 of the player) */
typedef struct { uint64_t x[31]; } Ctx;
@@ -86,6 +91,9 @@ int main(int argc, char **argv) {
seconds(1.0 / 120);
for (int i = 0; i < 600; i++) n = update(0);
CHECK(n == 600);
seconds(0), game_rate = 30; /* (and below 60) */
for (int i = 0; i < 600; i++) n = update(0);
CHECK(n == 1200);
printf("PASS: off\n");
return 0;
}
@@ -168,6 +176,29 @@ int main(int argc, char **argv) {
before = n;
for (int i = 0; i < 10; i++) n = update(0);
CHECK(n - before == 10);
/* (11-30) below 60 fps, no frame time: the game's step, 60 / its rate. At 30 two an update: the ending's second staff roll
(Dm_StaffCredit_0005: 7343 pictures at 60, its end screen opened at frame 6260 of the count) played in 3672 frames ended
its count near 3672 with one an update, the end screen never opened; now at 7344 */
game_rate = 30;
before = n;
for (int i = 0; i < 3672; i++) {
const uint32_t was = n;
n = update(0);
CHECK(n - was == 2);
}
CHECK(n - before == 7344);
game_rate = 48; /* (1.25 an update, the rest carried) */
before = n;
for (int i = 0; i < 400; i++) {
const uint32_t was = n;
n = update(0);
CHECK(n - was == 1 || n - was == 2);
}
CHECK(within(n - before, 500));
game_rate = 0; /* (60 again) */
before = n;
for (int i = 0; i < 10; i++) n = update(0);
CHECK(n - before == 10);
printf("PASS\n");
return 0;
}