Skip to content

fix(display): drop the post-end sink hold on real rate switches (#950) - #1010

Merged
superuser404notfound merged 1 commit into
mainfrom
fix/issue-950-drop-sink-hold
Nov 9, 2026
Merged

superuser404notfound merged 1 commit into
mainfrom
fix/issue-950-drop-sink-hold

Conversation

@superuser404notfound

Copy link
Copy Markdown
Owner

Refs #950.

The 1000 ms hold after modeSwitchEnd (added in #1003, released in 7.61.1) did not fix the case-1 noise. The reporter's follow-up traced it to tvOS quick switching: with it on, waits of 0, 500 and 1000 ms after the end made no reliable difference over about 60 switches each; with it off, 11 starts showed no noise, including 3 that skipped the hold. The hold only cost about a second per rate-changing SDR start.

  • Removes sinkSettleHoldMs / rateSwitchSinkSettleMs and the three call sites; the settle lines lose the ; #950: holding ... suffix.
  • Keeps the in-flight restart fix (endBelongsToInFlightSwitch) and the pre-write cadence check.
  • Changelog entry under Unreleased.

Tests: swift test --filter "Issue950|DisplayCriteria" (80 passed), tvOS generic build succeeds.

🤖 Generated with Claude Code

https://claude.ai/code/session_01SeT6NgMt1vv32kPBhUmsUz

The 1000 ms margin from 7.61.1 did not fix the noise it targeted. The
reporter traced it to tvOS quick switching: with it on, waits of 0, 500
and 1000 ms after modeSwitchEnd made no reliable difference over about 60
switches each, and with it off no start showed noise without the hold. It
only added a second to every rate-changing SDR start. The in-flight
restart fix from the same round stays.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SeT6NgMt1vv32kPBhUmsUz
@superuser404notfound
superuser404notfound merged commit 4472aa0 into main Nov 9, 2026
6 checks passed
@superuser404notfound
superuser404notfound deleted the fix/issue-950-drop-sink-hold branch November 9, 2026 13:24

@quint-aether quint-aether Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review

Status: 🟢 Clean. Nothing left to fix, ready for a maintainer.

This PR removes the 1000 ms hold after modeSwitchEnd that 7.61.1 added for AE#950. It keeps the in-flight restart fix and the pre-write cadence check. The direction is right: the reporter's measurements tie the noise to tvOS quick switching rather than to the release timing, so the hold only added about a second to each start that changes the rate. Removing a margin that didn't help is better than keeping a guess in the engine.

Findings
No findings. All three call sites are removed. No code, test or doc still refers to sinkSettleHoldMs or rateSwitchSinkSettleMs. The constant was never quoted in docs/, so DocumentedConstantsTests is not affected. The remaining #950 behaviour (a panel that had to switch waits for the end, and an end that belongs to the in-flight switch is ignored) is still covered in Issue950RateSwitchRelockTests.

Checklist: CHANGELOG yes, docs n.a., tests n.a. (a removal; the remaining #950 behaviour keeps its tests), traits both ways n.a.

Needs a device run: A few SDR starts that change the rate (for example 23.976 from the 50 Hz home screen) on the LG C2/C3, with quick switching off, to confirm that releasing right at the end shows no pink noise. The reporter's 11 clean starts point that way.

Thanks for following the measurements through and backing out the margin when it didn't help.

Automated review by Quint (Claude) of a4b7fa8. It reads the code, it does not build or run it; a maintainer reviews and merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant