Repository navigation
Fix the bench player on the lab minis and reject slow clock-probe bursts (851-3592) - #895
Merged
pondorasti merged 1 commit intoOct 29, 2026
Conversation
…sts (851-3592) The bench app launched with the prohibited activation policy, so the activation `open` gives was lost; the player then set presentation options while inactive, AppKit hid the app, and its display link starved after three drawables. Commands now declare presentsWindows and the launcher picks the policy before the app starts; the menu bar is hidden only once active. C2 drops bursts whose every probe queued (over twice the median round trip and 0.5 ms) and fails if more than 5% go. Fixes 851-3592 Co-Authored-By: Claude Opus 5.5 <[email protected]>
pondorasti
added a commit
that referenced
this pull request
Oct 29, 2026
…93) (#905) #895 added `presentsWindows` to BenchCommand while #904 was in review, so LoopbackCommand no longer conformed once both landed. Loopback presents windows with --onscreen or the own-window source. Also schedule the barcode verifier's drain from a method, so the tap callback doesn't capture a weak self var across queues. Part of 851-3593 Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
Fixes 851-3592
Follow-up to #893, from the acceptance runs on the lab minis.
Player stall on the minis (affects T2's player and my windows).
.prohibitedactivation policy, so the activationopengives at launch was lost.presentationOptions(hide the Dock and menu bar) while inactive. AppKit hides the whole app when that happens (NSApplicationDidHide), so the window vanished and theCAMetalDisplayLinkstopped after 3 drawables (updates: 3, presentedOnGlass: 0).presentsWindows.BenchLauncher.prepareparses the command beforeNSApplication.run, andBenchMainsets.regularfor those and.prohibitedfor the rest, so an observer next to the player never takes its focus. The menu bar is hidden only once the app is active (BenchPresentation), and the barcode window sits at.screenSaverlevel.C2 slow bursts. A 10-minute run had 4 of 300 bursts in which every probe queued: minimum RTT 2–3.7 ms against a 0.51 ms median. ε is the worst kept burst, so those four failed the run.
BenchClockTracknow leaves out bursts whose round trip / 2 is over both twice the median and 0.25 ms, and reportsrejectedBursts. C2 fails if more than 5% are rejected.Smaller fixes.
local_i2p_mskey now matches the report schema.BenchLaunchis simpler.Acceptance on the minis. M6, physical 1920×1080 @ 60 Hz displays, grants verified (Screen Recording, Accessibility, Local Network). CI state was recorded per run; numbers are per mini, croissant / tamale.
player --scene video(30 s)observe, barcode strip, 60 versions/s content)presentedTimeis 0 on these displays (1,806/1,807 frames usedisplayLinkTarget)CGEventPostkey presses, ownScreenSharingMetalViewwindowplayer --scene input(T2's S7,CAMetalDisplayLink)From a GitHub Actions job: Screen Sharing Bench Calibration run 40811596056, dispatched on this branch with this commit (e8952e1) installed on both minis, no other CI, load ≤ 2.5. Both jobs passed:
Finding: on these external displays, SCK delivers each frame about 14.7 ms before its PTS. PTS is the upcoming vsync, the on-glass time, which agrees with the −0.5 ms estimate error.
T2's acceptance (player S5/S3, R2 and R3 on a virtual display) passes on both minis; it's posted on 851-3591.
Verification
swift testforScreenSharingBenchTests(50) andCodevisorBenchTests(4) pass. The pre-commitbun run checkpassed: Swift format, lint and tests. The first attempt timed out in an unrelated WebKit proxy test at load average 110; it passed on the retry.high: the valid findings are fixed (menu bar once active, policy decided only in the launcher, an absolute floor and a fail gate for rejected bursts, the schema key name).🤖 Generated with Claude Code