-
-
Notifications
You must be signed in to change notification settings - Fork 32
Description
Hi,
I'm experiencing a high CPU usage for my application using the iced_layershell crate of about 9% to 20%. I'm using the iced14 branch and using the new debug feature flag I've attached comet to the application. I don't think it's an regression since I'm experiencing similar CPU usage on an old version of my application which uses iced 0.13.1 but there I can't attach comet.
I've noticed that the application is constantly rendering (or doing something at least) since in comet the charts have constant new updates. When attaching comet to the tour example of the iced repository one can see that this application only does something if effectively something changes (e.g. cursor move, button press) and otherwise nothing happens.
How to reproduce:
iced tour example (as reference how it should be):
- clone iced repository
- run tour example
- attach
cometby pressing F12
iced layershell application launcher example (how it is with iced_layershell):
- enable debug flag for
iced_layershelldependency - run application launcher example
- attach
cometby pressing F12
I'd suspect that this constant action in iced_layershell is the cause for the high CPU usage
I don't think this is the same as #78 as the other issue seems to be a problem in iced whilst this is a problem in this crate. However, the high CPU usage noticed in the other issue could originate from this problem