Iced: Increased CPU usage when interacting with other non-iced windows

Created on 28 Nov 2019  路  3Comments  路  Source: hecrj/iced

When running the examples from the repo (master branch hash 811d8b9) compiled to release, I noticed that the CPU usage for that process increase to 5-10% while interacting with other windows. Examples are moving my mouse along my dock, moving my mouse along files in my file browser, and resizing a different window. All of those actions become choppy and slow as well. When the iced example is closed, those actions return to normal. The idle CPU usage of the iced process is very low otherwise.

I'm not quite sure how the iced process is being affected by doing these unrelated things.

System information:
Manjaro Linux, kernel 5.3.12
KDE Plasma 5.17.3
Rust 1.39

If there's further information I can provide, let me know.

bug improvement

Most helpful comment

Yes, we are currently processing all the events and redrawing even if the window is not focused or the mouse is out of bounds.

This should be an easy fix. Thank you for report!

All 3 comments

Yes, we are currently processing all the events and redrawing even if the window is not focused or the mouse is out of bounds.

This should be an easy fix. Thank you for report!

I have implemented a (partial) fix in #84.

Thank you for the quick turn around time! I just tested out that branch, and things are working smoothly.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rowungiles picture rowungiles  路  4Comments

michael-hart picture michael-hart  路  4Comments

porglezomp picture porglezomp  路  3Comments

aentity picture aentity  路  3Comments

CallistoM picture CallistoM  路  3Comments