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

wasm demo performance isn't as 60 as it claims #182

Closed
adsick opened this issue Feb 17, 2021 · 3 comments
Closed

wasm demo performance isn't as 60 as it claims #182

adsick opened this issue Feb 17, 2021 · 3 comments
Labels
web Related to running Egui on the web

Comments

@adsick
Copy link

adsick commented Feb 17, 2021

Love egui, but https://emilk.github.io/egui/index.html actually runs with 40-50 fps when one window is opened, and it drops down to 25 fps when i open all the windows.

hardware: i5-3330 8g ram, amd Radeon R9-280x
software: Fedora 33 Firefox 85.

@emilk emilk added the web Related to running Egui on the web label Feb 20, 2021
@emilk
Copy link
Owner

emilk commented Feb 20, 2021

Yeah, Firefox does not implement WebGL very well. Out of my control unfortunately: https://twitter.com/fedor_games/status/1342838418343141381 https://t.co/UlnjSlw91Q?amp=1

@emilk emilk closed this as completed Feb 20, 2021
@lancecarlson
Copy link

lancecarlson commented Dec 23, 2021

@emilk Sorry to bring this issue back from the grave, but I also noticed some performance issues on Chrome on my MacOS laptop (Firefox is worse). I compiled the demo on my local machine to see if there were improvements, and there were, but there is still a tiny noticeable lag (on the hover effect) and CPU bounces to 50% on a regular basis. If I unfocus the window and let it relax, the CPU goes all the way down to 0 again. I tried to compile in release mode to see if it helped. I think that dragged the CPU down to around 10%, but hover my mouse over things in the demo is still delayed.

Any idea what be the issue?

BigSur 11.6
Model Name: MacBook Pro
Model Identifier: MacBookPro11,4
Processor Name: Quad-Core Intel Core i7
Processor Speed: 2.2 GHz
Number of Processors: 1
Total Number of Cores: 4
L2 Cache (per Core): 256 KB
L3 Cache: 6 MB
Hyper-Threading Technology: Enabled
Memory: 16 GB

@emilk
Copy link
Owner

emilk commented Dec 28, 2021

Try running the in-browser profiler and see if you can spot something. Certainly you should compile in release.

I know there is room for improvement in the painter - you can try using the glow painter instead, it is reportedly much faster than the WebGL based painter: #868 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
web Related to running Egui on the web
Projects
None yet
Development

No branches or pull requests

3 participants