Skip to content

[clip] 选中文字时鼠标丢帧卡顿 #103

Description

@ceastld

What happened

剪贴板 n10 启用后,选中文字时鼠标明显丢帧、整机卡顿;CPU / 内存不高。退出该动作后恢复。用户称近期第二次出现。

根因:ActiveWindowHook 通过 SetWinEventHook(eventMin=3, eventMax=23) 一次订阅整段系统事件。拖选文字会触发 EVENT_SYSTEM_CAPTURESTART(8),自动滚动还会触发 SCROLLING(18/19)等,全部派发到 ClipHost UI 线程;并且 Capture 被当成前台窗口切换,走 WinProperty.GetProcessById(约 13ms)和 EdgeHide / foregroundProcessChanged。

Steps to reproduce

  1. 启动剪贴板 n10 / ClipHost
  2. 在任意编辑器按住鼠标拖选一段文字
  3. 指针移动出现丢帧;退出动作后消失

Version / environment

ClipHost 用户日志 cliphost20260919.log(Native LL hook trampoline 已启动)

Source

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions