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

截图速度有点慢,想知道底层用的是什么方式截图,有无优化空间 #133

Open
infopensource opened this issue May 16, 2024 · 8 comments

Comments

@infopensource
Copy link

我的电脑是archlinux,桌面环境是kde Wayland,在release模式下编译,循环截图六十次耗时约12秒。我想实时进行屏幕共享,这个速度有点慢,想知道有优化空间吗?以及在Windows,x11和mac的桌面环境下性能表现怎么样?

@MeteorTan
Copy link

个人体验windows下性能没什么问题,不过只使用了截图的部分

@nashaofu
Copy link
Owner

wayland支持的比较差,调用了系统截图,保存文件到硬盘,然后读文件

@lilydjwg
Copy link

还是希望能够支持 wlroots 截图……

@lilydjwg
Copy link

我想实时进行屏幕共享

请勿使用截图 API 进行屏幕共享。有专门的屏幕共享 API(PipeWire 那个)。

@infopensource
Copy link
Author

我想实时进行屏幕共享

请勿使用截图 API 进行屏幕共享。有专门的屏幕共享 API(PipeWire 那个)。

感谢,再请教一下rust下有什么跨平台的库提供屏幕共享api吗?

@lilydjwg
Copy link

再请教一下rust下有什么跨平台的库提供屏幕共享api吗?

我不了解。不过你写就有了嘛(

@hengkx
Copy link

hengkx commented May 23, 2024

截取整个屏幕在保存我这边要4秒多 有点慢

@qzd1989
Copy link

qzd1989 commented Jun 7, 2024

确实很慢,在m1max macbook pro上, 运行最大化窗口截图要约500ms, 缩到最小(不是最小化)窗口也要100多ms...

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

No branches or pull requests

6 participants