Skip to content

iced_layershell: continuously doing something despite nothing changing #159

@WhySoBad

Description

@WhySoBad

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):

  1. clone iced repository
  2. run tour example
  3. attach comet by pressing F12

iced layershell application launcher example (how it is with iced_layershell):

  1. enable debug flag for iced_layershell dependency
  2. run application launcher example
  3. attach comet by 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions