perf(macos): reduce audio and prefetch UI stalls - #54
Merged
Conversation
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.
Summary
time-posIPC during lazy audio relock with the existing event-thread-maintained position cache.loadfile appendprefetch one Qt event-loop turn, keeping next/advance handlers short while preserving the playlist warmup path.Evidence
The M5 five-minute soak recorded a 210 ms
cell._toggle_mutestall and repeated 170–246 mswall._arm_prefetch/wall.next_videoGUI stalls. VideoToolbox remained active on every cell; cache starvation is separately visible and remains out of scope for this targeted UI-latency change.Validation
python3 tests/run_all.py— PASSbash -n soak_wall.sh— PASSRerun
Run
./soak_wall.sh 5on the M5. CompareAUDIO arm,PERF slow slot,PERF loop stall, and freeze counters to the baseline.