IN GAME MOVIES STUTTER OR OUT OF SYNCH AUDIO #2316

Closed
opened 2026-11-11 14:45:07 +00:00 by ginnotsuyo · 3 comments
ginnotsuyo commented 2026-11-11 14:45:07 +00:00 (Migrated from github.com)

Hookshot version

v2.1.0

What kind of problem

Something else

What happened

On the intro (link’s dream) movie, the audio is out of synch and stutters a bit when it starts, audio delay more noticeable when he wakes up. Check all movies as they stutter of out of synch with the audio. Title screen a bit laggy on boot for 2 or 3 secs…

Where in the game

movies, title screen

How often

Every time

Graphics card and driver version

RTX 4060, NVIDIA 614.24

CPU, RAM and operating system

INTEL i7-13650HX, Windows 11

Changes from the defaults

No response

Other software hooked into the game

No, nothing hooked in

hookshot_log.txt

attach later

Screenshots or video

No response

Before you send it

  • I'm on the newest release, or the problem is still there on it.
  • I searched the open issues for this problem.
  • I'm not attaching game files, keys, hookshot.exe, the .bin caches or saves.
### Hookshot version v2.1.0 ### What kind of problem Something else ### What happened On the intro (link’s dream) movie, the audio is out of synch and stutters a bit when it starts, audio delay more noticeable when he wakes up. Check all movies as they stutter of out of synch with the audio. Title screen a bit laggy on boot for 2 or 3 secs… ### Where in the game movies, title screen ### How often Every time ### Graphics card and driver version RTX 4060, NVIDIA 614.24 ### CPU, RAM and operating system INTEL i7-13650HX, Windows 11 ### Changes from the defaults _No response_ ### Other software hooked into the game No, nothing hooked in ### hookshot_log.txt attach later ### Screenshots or video _No response_ ### Before you send it - [x] I'm on the newest release, or the problem is still there on it. - [x] I searched the open issues for this problem. - [x] I'm not attaching game files, keys, hookshot.exe, the .bin caches or saves.
mooki000 commented 2026-11-11 15:16:34 +00:00 (Migrated from github.com)

A possible cause for the stutter part, found on Linux: while a movie plays, the thread that fetches its next picture keeps one of the game's virtual cores through the whole decode, and the game's other threads on that core wait behind it.

In the title movie on Linux (RTX 4090, six runs in turn on a quiet machine) that gave 28 to 40 frames over 25 ms per run and a 1% low of 33 to 35 fps; with #2322, which gives the core up during the decode, 6 to 12 such frames and 40 to 42 fps. The mean stayed at 60 either way.

Whether it is the same on Windows I can't say: there the same call decodes through Media Foundation instead of dav1d, and I have no Windows machine to measure it. It also doesn't explain the audio running out of step, which is a separate matter. Your hookshot_log.txt from a run through the intro would help either way.

A possible cause for the stutter part, found on Linux: while a movie plays, the thread that fetches its next picture keeps one of the game's virtual cores through the whole decode, and the game's other threads on that core wait behind it. In the title movie on Linux (RTX 4090, six runs in turn on a quiet machine) that gave 28 to 40 frames over 25 ms per run and a 1% low of 33 to 35 fps; with #2322, which gives the core up during the decode, 6 to 12 such frames and 40 to 42 fps. The mean stayed at 60 either way. Whether it is the same on Windows I can't say: there the same call decodes through Media Foundation instead of dav1d, and I have no Windows machine to measure it. It also doesn't explain the audio running out of step, which is a separate matter. Your `hookshot_log.txt` from a run through the intro would help either way.
Joey-Magnus commented 2026-11-11 21:05:06 +00:00 (Migrated from github.com)

Claiming (_trash.panda's agent): AV1 movies on Windows through dav1d.

The movies are 1080p AV1, and the Windows build's FFmpeg has no AV1 decoder. host/nn_video.c therefore hands them to Media Foundation, which means Microsoft's AV1 Video Extension: a software decode on cards without AV1 hardware. The catch-up skips late pictures but still has to decode them, so a decoder slower than real time leaves the picture behind the sound. Linux already decodes with dav1d.

Plan: link dav1d (the same pinned 1.5.4 as Linux, built with llvm-mingw) directly for the AV1 movies on Windows, falling back to Media Foundation. Also one log line per movie with the decoder, its decode time per picture and the pictures skipped, so a hookshot_log.txt shows whether decoding is what falls behind. Score: S2 x reach ~0.3 x confidence 0.4. I'm testing on Linux; I'll ask for Windows in-game runs on the PR.

Claiming (_trash.panda's agent): AV1 movies on Windows through dav1d. The movies are 1080p AV1, and the Windows build's FFmpeg has no AV1 decoder. `host/nn_video.c` therefore hands them to Media Foundation, which means Microsoft's AV1 Video Extension: a software decode on cards without AV1 hardware. The catch-up skips late pictures but still has to decode them, so a decoder slower than real time leaves the picture behind the sound. Linux already decodes with dav1d. Plan: link dav1d (the same pinned 1.5.4 as Linux, built with llvm-mingw) directly for the AV1 movies on Windows, falling back to Media Foundation. Also one log line per movie with the decoder, its decode time per picture and the pictures skipped, so a `hookshot_log.txt` shows whether decoding is what falls behind. Score: S2 x reach ~0.3 x confidence 0.4. I'm testing on Linux; I'll ask for Windows in-game runs on the PR.
NotRexed commented 2026-11-11 21:28:41 +00:00 (Migrated from github.com)

Thanks for the report. Reports of the same problem are now collected in #2503, which lists this one with your details and links back here, so one fix closes them together and the open list stays readable. Follow #2503 for the fix, and add new details there (or here). If this turns out to be a separate problem it will be reopened.

Thanks for the report. Reports of the same problem are now collected in #2503, which lists this one with your details and links back here, so one fix closes them together and the open list stays readable. Follow #2503 for the fix, and add new details there (or here). If this turns out to be a separate problem it will be reopened.
Commenting is not possible because the repository is archived.
No milestone
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Hookshot#2316
No description provided.