-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Insane gpu usage when hovering over the UI. #2119
Comments
Instead of saying:
please specify the exact number, like |
I'm not certain if this is related, but using the latest proprietary Nvidia driver ( Edit: This behavior was resolved on my system by forcing |
Hi , the GUI opens but I can not input any text or click buttons and not even close the GUI unless I do Ctrl-C from the terminal. GUI looks like it is frozen I saved the output when I run cargo run --package todos into text file in case if it helps to debug |
The issue with freezing on Nvidia + Wayland should be fixed by gfx-rs/wgpu#4967. Though that doesn't seem to have been included in the wgpu latest release. |
When do you think we should expect it to be included in your create ? |
That's a change to wgpu rather than iced, so you'd have to ask the wgpu maintainers. Unless Iced switches to a patched version of wgpu. You should be able to override the version of wgpu used by any of your program's dependencies by adding something like this to [patch.crates-io]
wgpu = { git = "https://github.com/gfx-rs/wgpu", rev = "ac8756c" } |
I started learning iced. so dont have directly dependency to wgpu but maybe make a local branch of iced and change the wgpu dependency like that until it is resolved. |
This is |
Shall I put that first and then iced in my example crate, will that work ? |
diff --git a/Cargo.toml b/Cargo.toml
index c9dee6b7..5a3ad548 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -162,3 +162,6 @@ wgpu = "0.19"
winapi = "0.3"
window_clipboard = "0.4"
winit = { git = "https://github.com/iced-rs/winit.git", rev = "b91e39ece2c0d378c3b80da7f3ab50e17bb798a5" }
+
+[patch.crates-io]
+wgpu = { git = "https://github.com/gfx-rs/wgpu", rev = "ac8756c" } Just tried it myself on iced master. I got a warning from Cargo that told me to run |
I have this
cargo gives me this warning, and when I run cargo update , it gives it again
|
Oh. Yes. You're depending on the crates.io version of iced, which is too old for that new wgpu patch. You would need to depend on the git version of iced, by setting [dependencies]
iced = { git = "https://github.com/iced-rs/iced.git", rev = "a1114ca" } |
UPDATE : thank you it worked awesome :) |
Is there an existing issue for this?
Is this issue related to iced?
What happened?
As you can see when running the todo demo in debug or release and then i hover my mouse over the gui i get insane gpu usage for no reason.
What is the expected behavior?
Minimal GPU usage, this isn't an issue in desktop machines but its a huge problem for laptops since the battery will get drained quickly.
Version
crates.io release
Operating System
Windows
Do you have any log output?
No response
The text was updated successfully, but these errors were encountered: