Repository navigation
Stall sound held to the host's time, as a frame's is - #143
Merged
Merged
Conversation
In real time a stall's sound (the watcher's, while no frame ends: a load) was the engine brought up to the EE clock, its disc waits counted where the PC had none: The Third Age's first movie after the title gave about 1.3 s of extra sound in a second (bursts up to 8613 samples), and the output queue dropped 1.2 s of it. stallSound now goes through the same budget as frameSound (holdToHostTime): 52K samples in that second, the queue at most 82 ms, nothing dropped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In real time, a stall's sound (the watcher's, while no frame ends: a load) was the engine brought up to the EE clock, which counts disc waits the PC never had. The Third Age's first movie after the title gave about 1.3 s of extra sound in one second (bursts up to 8613 samples); the output queue reached 230 ms and dropped 1.2 s of it.
stallSound now goes through the same budget as frameSound (FreeHost::holdToHostTime, factored out of frameSound): the newest samples kept, the surplus skipped where it was made.
Checked with TTA's window build in real time on SDL's dummy audio driver (TTA_AUDIO_STATS / TTA_AUDIO_RATE), title -> new game -> first movie: 111505 -> 52236 samples in that second, queue max 230 -> 82 ms, dropped 59286 -> 0. Steady play unchanged (48000 samples per wall second). Deterministic runs (not real time) are untouched.
🤖 Generated with Claude Code