Skip to content

fix(renderer): 降低流式渲染与目标页卡顿 - #1128

Merged
vastsa merged 1 commit into
mainfrom
perf/desktop-renderer-performance
Sep 26, 2026
Merged

vastsa merged 1 commit into
mainfrom
perf/desktop-renderer-performance

Conversation

@vastsa

@vastsa vastsa commented Sep 26, 2026

Copy link
Copy Markdown
Owner

变更

  • 将流式文本 React 更新限制到 60Hz,并在追上文本后停止动画帧循环,降低高刷新屏幕上的无效渲染。
  • 修正设置页切换时的无障碍隐藏状态,并在进入设置后聚焦搜索框。
  • 为 Pull Requests 页面显示真实加载状态;刷新时保留已有列表,并丢弃旧工作区的异步响应。
  • 补充隔离的组件/E2E 覆盖和中英文规格。

验证

  • pnpm build:js
  • pnpm --filter @pi-desktop/desktop typecheck
  • pnpm lint
  • pnpm docs:check
  • 29 个针对性 renderer 单测
  • pnpm test:e2e:settings-scroll
  • pnpm test:e2e:destination-loading
  • pnpm test:e2e:transcript
  • pnpm check:pr-base

流式渲染 E2E 在确定性 120Hz 帧输入下观测到最小提交间隔约 16.67ms,追上文本后没有额外空闲帧。

Bound smooth-text React commits on high-refresh displays and stop the animation loop when it catches up. Keep destination loading states explicit and prevent older workspace responses from replacing current pull requests.

Cover the cadence, Settings focus, pending refresh, and workspace-switch paths with isolated UI tests.
Copilot AI lite review requested due to automatic review settings September 26, 2026 21:40

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@vastsa
vastsa merged commit 78caf97 into main Sep 26, 2026
4 checks passed
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.

2 participants