Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OPTIMIZE]: 优化截图触发链路 #760

Open
darkskygit opened this issue Mar 23, 2024 · 0 comments · May be fixed by #761
Open

[OPTIMIZE]: 优化截图触发链路 #760

darkskygit opened this issue Mar 23, 2024 · 0 comments · May be fixed by #761

Comments

@darkskygit
Copy link

当前截图流程如下:

  1. 通过ocr_translate函数创建截图窗口
  2. 截图页加载时 invoke screenshot 命令
  3. screenshot 截屏并保存到本地文件夹
  4. invoke callback读取本地文件夹中的截图

通过打点可以发现,在第一步耗时可以超过1秒,在快速操作时,实际截图的内容距离实际按下快捷键时屏幕显示的内容不同,会给人明显的迟滞感

image

@darkskygit darkskygit linked a pull request Mar 23, 2024 that will close this issue
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 a pull request may close this issue.

1 participant