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

Perform benchmarks #7

Open
hecrj opened this issue Sep 5, 2019 · 5 comments
Open

Perform benchmarks #7

hecrj opened this issue Sep 5, 2019 · 5 comments
Labels
help wanted Extra attention is needed improvement An internal improvement performance

Comments

@hecrj
Copy link
Member

hecrj commented Sep 5, 2019

As mentioned in #4, in order to avoid performance regressions, it would be great to run some benchmarks on the different parts of the API.

The most expensive operation is clearly UserInterface::build. This will be the main focus for many of the optimizations we will implement in the future. We should benchmark this first.

UserInterface::update and UserInterface::draw will also get slower the more widgets and events a user interface has to handle. It would be great to have some numbers!

@hecrj hecrj added help wanted Extra attention is needed improvement An internal improvement labels Sep 5, 2019
@tgotwig
Copy link
Contributor

tgotwig commented Sep 11, 2019

I can try to have a look 🕵🔎

@hecrj
Copy link
Member Author

hecrj commented Sep 11, 2019

@tgotwig Awesome! I really appreciate the help. Let me know if you need anything.

tgotwig pushed a commit to tgotwig/iced that referenced this issue Sep 12, 2019
tgotwig pushed a commit to tgotwig/iced that referenced this issue Sep 14, 2019
@tgotwig
Copy link
Contributor

tgotwig commented Sep 14, 2019

CPU is constantly on 3.x on MacOS when I run it with --release, although nothing is happening.
Aktivitätsanzeige (Meine Prozesse) 2019-09-14 14-47-26

@lachlansneff
Copy link

Looks to me like the event loop it's using is continuously polling.

@hecrj
Copy link
Member Author

hecrj commented Sep 14, 2019

Yes, the example is drawing the UI every frame. This is expected.

Benchmarking the ggez example is not what this issue is about! iced is renderer-agnostic. We should benchmark iced.

tgotwig pushed a commit to tgotwig/iced that referenced this issue Sep 15, 2019
CurryPseudo pushed a commit to CurryPseudo/iced that referenced this issue Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed improvement An internal improvement performance
Projects
None yet
Development

No branches or pull requests

3 participants