Repository navigation
1.0.23:Intel 效能收尾 + 首发 - #44
Merged
Merged
Conversation
编 x86_64 stage 包与 fixture、ditto 传过去远端验签、caffeinate、锁屏与 load 检查、 经 run-in-guest.sh 跑 hitch N 遍再跑 energy-profile,拉回输出交 perf-report.sh --parse。 拒绝本机地址;远端只用系统自带命令(不调 python3/git)。 perf-report.sh 加 --app,读指定包的版本号与 build 号。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… signpost、refreshPanel 计数 性能计划第 0 阶段第 2–4 条,只加量法与埋点,不改产品行为: - hitch 展开等待先看行程内状态,动画跑完才问 CGWindowList;onscreen() 一次查询拿在屏与框。 - Effects/PresentTimeline:探针在量时记 FoldRenderer drawable 的 presentedTime, HitchMeter 同一算法印 HITCH-present fold/unfold;perf-report 记作 present-fold/present-unfold。 - SystemLog.glanceSignposter(prepare/show/hide/finish);foldPhase 每步一个 fold/phase 区间; unfold/unfold-restore 同步区间;refreshPanel 计数、区间、关面板时写日志,hitch 探针印每次打开的次数。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
面板还透明(等 GPU 就绪)时的帧、盖板停在静止画面等藏窗/恢复确认时的帧都不是掉帧, 之前被算成 133–200 ms 的长间隔。现在编码时记可见性与进度是否变化,只用在动的帧算卡顿; 首个可见帧到首个在动帧的时长打印成 start delay(M5 上收起中位 233 ms、展开 67 ms)。 另印每次交互里超过 1.5 帧的间隔位置,分清中途掉帧和首尾空档。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…irty 不再算卡顿账自己 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 每个 App 的窗口探查结果回主线程后不再各自整面板刷新:目录先更新,刷新排到主队列已排着的结果之后做一次。 M5 上每次打开 refreshPanel 17 次 → 3 次。最终列表与逐个刷新的最后一次相同。 - 卡片/列表行拿右键菜单的闭包,右键时才由控制器按当前状态生成 NSMenu;原来每次刷新替每张卡建整份菜单(约 20 ms/次打开)。 M5 browser-open(6 轮快测)455 → 210 ms/s,worst 234 → 117 ms。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AXObserverAddNotification 是发给目标 App 的同步 IPC,目标正忙着最小化/隐藏时要等它回话: 2017 MacBook 的 sample 里每次收起约 96 ms 都压在主线程上(M5 上不到 1 ms)。 观察者、路由和主线程 runloop source 照旧在主线程建好,只把三个注册放到后台串行队列; 注册生效的时刻取决于目标 App 何时处理这条消息,不变。三个都失败时在主线程撤掉路由与 source。 新增 --reveal-observer 探针:收起后从外面揭开,核对注册成功、窗口回来; 只计数的 revealObserverRegistrations/revealNotificationUnfolds/foldAXNotificationsReceived 供它读。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2017 MacBook 的 sample:收起验证每次约 74 ms 卡在 windowID(of:)——发给正在最小化的目标 App 的同步 IPC。 FoldVerifier 的读数改成回调(同步 init 保留,包一层当场回调,旧用例逐字不变); observeFoldHide 拆出 readFoldHideAX:按原顺序只读 AX、前一项不对即止,可在后台跑; offscreen/cornerParked/hidden/minimized 四种在后台读、回主线程按原逻辑判定, 不读 AX 的与走私有 SkyLight 的照旧在主线程当场判。读数什么时候出来、判定就什么时候做,时序不变。 新增 tests/run-fold-verifier-tests.sh(15 项):延后读数与同步判定一致、读数在途时过期不出结果、补救后的迟到观察顺序。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2017 MacBook 的 sample:每次展开约 144 ms 卡在 AXUIElementPerformAction(raise),目标 App 正从最小化里出来。 activate/unhide 照旧在主线程;raise 与 focus 按原顺序在串行队列发出(立即、80 ms、250 ms 三次时刻不变), 做完回主线程再套一次兄弟窗的藏法、记日志,先后与原来相同。restore-guard(展开的那扇在最前)照过。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1C 第一项之后,2017 MacBook 的等待挪到了 RestoreVerifier.check → resolvedWindowElement 的 AX 读(6 次展开 631 ms)。 RestoreVerifier 的读数改成回调(同步 init 保留,旧用例逐字不变);读数在途时被取消,不确认、不回调。 observeRestoredWindow 拆出 readRestoredWindow(按原短路顺序只读 AX/CG,可在后台跑), NSRunningApplication 与屏幕安全区照旧在主线程判;resolvedWindowElement 的本体抽成 nonisolated 共用。 tests/run-fold-verifier-tests.sh 加 7 项 RestoreVerifier 用例。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…与 MacBook 记帐 同一个读取点(window-ax),只是改写进后台读数函数。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
等待线程的 Time Profiler(M5):每次看一眼出现,主线程 22–30 ms 卡在 FastCapture.composite (SLWindowListCreateImageFromArray 等窗口服务器合成),在 open() 里同步做。 现在需要背景图时先在后台截,截完回主线程走同一段后半流程(finishOpen),沿用开头的 now; 画面出现的时刻与原来相同、截的是同一时刻的画面。等待期间会话被收回或换掉就丢掉这次,不重复开。 M5 glance-show(10 轮快测)40–59 → 2.7 ms/s。看一眼主探针 9 项、L2 appkit 全过。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
等待线程的 Time Profiler(M5):关闭时主线程只在淡出完成回调里忙,orderOut 加 close(连带一次 becomeKey) 约 11 ms 挤在同一帧,形成一个 33 ms 的帧。面板这时已透明并 orderOut;close 改到下一轮做, 这一轮强持有面板保证照样 close。焦点交还前一个 App 原本就在淡出开始时,不改。 M5 browser-close(20 轮×2)37–59 → 0.0/2.4 ms/s。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…7 ms) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2017 MacBook 70 秒 sample: - 展开后 80/250/550/1100 ms 的几何校正(applyRestoredGeometry 与 raise/focus)611 ms 压在主线程。 AX 部分抽成 applyRestoredGeometryAX,按原时刻在串行 AX 队列(与带到前台同一条)发出; 屏幕安全区照旧主线程算,日志与解析出的元素回主线程记。 - 刘海标题监看 WindowTitleWatcher.watch 的 AXObserverAddNotification 183 ms。 注册改在后台串行队列,在途的也算「在盯」(基准标题只记一次、收起结束照样撤), 在途时被撤或 App 退出就把注册上的那条撤掉。--notch 探针加一条:2 秒后已真的注册上。 (--notch 里「标题变了刘海短暂展开」那条在改动前的 HEAD 上同样失败,是既有问题。) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2017 MacBook sample:每次建面板约 34 ms 花在 NSButton(title:) 的 sizeToFit(macOS 26 走 SwiftUI 按钮排版), 而这颗按钮只在缺屏幕录制权限时才露出。建法与配置逐项不变,插回原来的层次(caption 之下),只是延后到要露出时。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Intel 实验版第一次在真机量测后收尾:perf/intel-floor 的 20 个 unique 提交 按序 cherry-pick 进 main 之后,升版本、写发布说明,并如实改三份 README 与官网。 - 1.0.23 / 20261129.01;docs/releases/v1.0.23.md 带「一句话摘要」与「Intel 摘要」 - README 三份:Intel 从「没在真机测过」改成 MacBook10,1 实测,列出仍超预算的四类 - docs/performance.md 第九节与 perf-ledger:标明本版未在真机重跑,数字来自同一批修正的最后一次量测 - 官网事实行、问答与开发中一段同步;窗口浏览滚动条裁行修正写进说明
scripts/make-dmg.sh --capture-template 生成:图标 128、字号 13、不自动排列, WindowShade.app 在 (170,190)、Applications 在 (490,190),背景指向 .background/background.tiff。 模板只存 Finder 版面,与版本无关。本机钥匙串没有 Developer ID 私钥,捕获前把已有的 已签名 .build/release 包(1.0.22.1)送公证并钉票据,再按脚本原文捕获。
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: c1a8c953-2fe0-4c04-bbcb-64b8cf9dd3ce) |
「2–4 倍」把窗口浏览打开也算进去了,但它只是 412–414 → 352–356(约 15%)。 三份 README 与 CHANGELOG 改成:收起/展开 3.5–5 倍、窗口浏览关闭约 3 倍、打开约 15%; M5 展开写成「约 40 → 20–24 ms/s」,不再说「快一倍」。
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.
把 perf/intel-floor 的 20 个 unique 提交按序 cherry-pick 进 main,完成 1.0.23 首发准备。
backup/perf-intel-floor-20261129(branch + tag)已推 origingit cherry main perf/intel-floor的-行)WindowBrowserContentView.swift两处自动合并后逐行核过 main 的「始终显示滚动条」修正仍在docs/releases/v1.0.23.md含 appcast 摘要与 Intel 摘要assets/dmg/DS_Store已按make-dmg.sh --capture-template生成并验证(图标 170/190、490/190,128,不自动排列)本地已验证:x86_64
build.sh --check、local-gate check、unit(424s,0 skip)、AppKit(494s,0 skip)、fold-verifier、site build/check、docs 链接与 README 状态行、check-release-version.sh。run-duo-tests.sh在DuoCoreTests.swift:61失败,main 上同样失败(已用 worktree 复现,exit 133),属既有问题。Note
Medium Risk
Broad threading changes on fold/unfold, Glance, and window-browser paths preserve stated AX ordering but are easy to get wrong; Intel build remains experimental with hitch budget still exceeded on four interaction classes.
Overview
1.0.23 ships the Intel perf/intel-floor work: synchronous Accessibility IPC is moved off the main thread for roll-up, unfold, Glance, and window-browser hot paths, with hitch probes and docs updated to match.
Main-thread / AX performance: Roll-up registers “revealed by someone else” observers on a background queue; fold hide verification and unfold restore polling read AX on background queues and judge on the main thread. Unfold raise/focus and post-unfold geometry pins run on a serial
restoreFrontQueue. Glance backdrop compositing runs onbackdropQueue. Notch title-watch AX registration is async. Window browser coalescesrefreshPanelafter app discovery (fewer refreshes per open), builds context menus on right-click, deferscloseuntil the next runloop after fade-out, and lazily creates the screen-recording settings button.Measurement & release:
PresentTimeline+HITCH-presentlines in--hitch; newscripts/intel-floor.shand--reveal-observerprobe; version 1.0.23 / build 20261129.01, release notes, perf ledger, and README/site copy (Intel measured on 2017 MacBook; Glance in budget; fold/unfold/browser still experimental). Apple Silicon benefits cited for unfold (e.g. ~35–45 → ~20–24 ms/s). Window browser no longer clips the last document line when scroll bars are always shown (per release notes; layout logic in window browser content).Site/docs: Maintenance discipline in
copy-guide.md, theme sync/color-schememeta, hero stagger CSS, FAQ and default toggles aligned with code defaults.Reviewed by Cursor Bugbot for commit a6b5ccb. Bugbot is set up for automated code reviews on this repo. Configure here.