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

执行cargo run --bin tutorial9-models,发现窗口拖动很卡 #21

Open
qzd1989 opened this issue Jul 12, 2024 · 1 comment
Open

Comments

@qzd1989
Copy link

qzd1989 commented Jul 12, 2024

CPU和内存都没满,拖动窗口栏时很卡顿。
命令行日志:

Using Apple M1 Max (Metal)
正在使用 Apple M1 Max, 后端图形接口为 Metal。

我的环境:
image

@jinleili
Copy link
Owner

gfx-rs/wgpu#2852 winit 的的 event_loop 会一直霸占当前线程导致没法即时响应当前应用的其它系统级事件,有两种可选的解决路径:
1, 等 winit 解决相关 bug: https://github.com/rust-windowing/winit/issues?q=is%3Aissue+is%3Aopen+lag
2, 参考 wgpu-in-appbevy-in-web-worker 剔除对 winit 的依赖

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

2 participants