Triforce v0.8.5

A Randomizer page in the launcher, a new title screen with Mods and Save Select tabs, scaling changes applied in game, the Jabu-Jabu bars fixed, renderer frame-time work and the brightness-flash fix, and fixes from the 0.8.4 reports.
This commit is contained in:
ruckus7382sfgsgdf
2026-11-28 10:54:41 -06:00
parent 2df08c751e
commit b527e29adb
203 changed files with 18821 additions and 2051 deletions

View File

@@ -135,14 +135,17 @@ def main():
args = parser.parse_args()
video = vf.video_source()
vf.check('#include "video_catchup.h"' in video and "VideoPace pace;" in vf.block(video, "typedef struct {\n AVCodecContext *ctx;"),
vf.check('#include "video_catchup.h"' in video and " VideoPace pace;" in video,
"nn_video.c does not keep the movie's pace in its decoder")
vf.check("video_pace_picture(&d->pace, f->pts);" in vf.block(video, "static void queue_frame(Dec *d, const AVFrame *f) {"),
"queue_frame does not give each picture's time to the gap")
nxt = vf.block(video, "static void decode_next(Dec *d) {")
vf.check("const int64_t pictures = d->movie.pictures;" in nxt
and "if (d->movie.pictures != pictures) video_pace_decoded(&d->pace, took);" in nxt,
"decode_next does not keep what a decode that gave a picture took")
# ((Triforce, 11-22) with the pictures decoded ahead queue_frame runs on the worker without the decoder's lock, so the
# pace is counted where the decode's pictures are taken under it: decode_done, for the worker and for decode_next)
done = vf.block(video, "static void decode_done(Dec *d, int end, int64_t ns, int live) {")
vf.check("video_pace_picture(&d->pace, d->out[i].pts);" in done and "pace" not in vf.block(video, "static void queue_frame(Dec *d, const AVFrame *f) {"),
"decode_done does not give each picture's time to the gap, or queue_frame touches the pace without the lock")
vf.check("if (d->nout) video_pace_decoded(&d->pace, ns);" in done and "if (live) {" in done,
"decode_done does not keep what a decode that gave a picture took")
vf.check("decode_done(d, end, hos_now_ns() - t0, 1);" in vf.block(video, "static void decode_next(Dec *d) {"),
"decode_next no longer counts its decode")
vf.check("memset(&d->pace, 0, sizeof d->pace);" in vf.block(video, "static void movie_end(Dec *d) {"),
"a movie's end does not start the pace again")
acquire = vf.block(video, "static void dec_acquire(Ctx *c) {")
@@ -153,7 +156,7 @@ def main():
vf.check(stop in acquire, "the catch-up does not ask the rule with the time this acquire has spent")
loop = acquire[acquire.index("for (int guard = 0;"):]
loop = loop[:loop.index("if (skipped && video_log())")]
vf.check(loop.count("decode_next(d);") == 1 and loop.index("if (!d->phead) break;") < loop.index(stop) < loop.index("decode_next(d);"),
vf.check(loop.count("decode_next(d);") == 1 and loop.index("if (d->worker || !d->phead) break;") < loop.index(stop) < loop.index("decode_next(d);"),
"the catch-up decodes ahead before it asks the rule")
vf.check('getenv("HOS_VIDEO_NO_CATCHUP")' in acquire and "guard < 600" in acquire, "the catch-up lost its switch or its guard")
dev = (vf.ROOT / "docs" / "development.md").read_text(encoding="utf-8")