-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Unresponsive browser resizing #1500
Comments
It is very curious that the changes would affect performance, especially so much. The main change is the addition of an atomic Boolean which is slower than non-atomic operations, but I wouldn't see that causing a 10x slow down. |
No, it must be something far more serious, like the event not being registered or the Do you have time to take a look? |
I think I found the culprit, It looks like the event handlers meant for the html element do not get registered. It can be seen in the screenshots that the canvas and the input elements have their event handlers registered, while the html element has no event handlers. EDIT: This was caused by a silly copy-paste error where I accidentally put events for the |
Moving the windows in the web demo has always been fast. To my surprise now on macOS it is very slow. It's not good in Firefox and unbearable in Safari. Can this be related? |
That sounds unrelated @kud1ing - please file an issue if you are having performance issues in a browser. Please note the difference between |
This may be only on my system. It's better after a reboot. Not sure why it's shows up now and only in the web demo. |
Resizing the browser window (Brave or Firefox, Mac) will not resize the egui canvas immediately, making resizing feel VERY laggy.
git bisect
found out it was caused by #1306The text was updated successfully, but these errors were encountered: