Repository navigation
fix(display): drop the post-end sink hold on real rate switches (#950) - #1010
Conversation
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
There was a problem hiding this comment.
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.
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.sinkSettleHoldMs/rateSwitchSinkSettleMsand the three call sites; the settle lines lose the; #950: holding ...suffix.endBelongsToInFlightSwitch) and the pre-write cadence check.Tests:
swift test --filter "Issue950|DisplayCriteria"(80 passed), tvOS generic build succeeds.🤖 Generated with Claude Code
https://claude.ai/code/session_01SeT6NgMt1vv32kPBhUmsUz