-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Firefox CPU usage skyrockets unlike non-WebGL web pages #67
Comments
Hi! No, this is quite unexpected! I have no problems in my version of Firefox running on my Mac. What platform are you on? Laptop/desktop? What graphics card? Does it still happen if you scale down the browser window? What does the |
Sounds like a GPU-side problem then. My WebGL skills are not great, and I don't really have the time to investigate this right now. There should theoretically be no problem at all with the GPU rendering, but WebGL is weird and maybe there is some subtlety when using large canvases. That it is your CPU that spikes seems to indicate that FireFox is rendering on the CPU instead of the GPU, which is weird. If anyone is good at web tools and diving into why large canvases + WebGL is sometimes so slow, that would be greatly appreciated. |
Well, at least confirm, please, that there is no bitcoin miner in your code :) |
Re WebGL, I'm not that experienced to dig into it, but for sure desktop games run just fine on this Desktop, like e.g. Witness. |
@meglio you can also clone this repo and run |
Same issue with the Hobogo game at https://emilk.github.io/hobogo/index.html |
Hi @meglio, |
I've implemented a max-width in |
Thanks to @not-fl3 I now know this is a bug in Firefox: https://twitter.com/fedor_games/status/1342838418343141381 https://bugzilla.mozilla.org/show_bug.cgi?id=1010527#c0 |
So, let's look at it this way: there is a bug in Firefox that has been there for years, and is still making it impossible to use egui in the browser (one of the major browsers). Kind of being unfortunately ala vendor-locked. |
I definitely wouldn’t say it is impossible to use egui in Firefox. It just hurts the FPS and adds cpu usage, but it still works pretty well |
When I tested it, it did not work pretty well, unfortunately :( Adding CPU usage that much just makes it not a viable option. |
I have been exploring the Immediate Mode GUI concept, and I found a few demos for web applications, including emilk/egui.
One thing I noticed is that the CPU usage by Firefox skyrockets when I play with those demos, unliked with any other pages written with using HTML/CSS/JavaScript.
Q1. Why it happens and is this expected?
Q2. What happens if most of the websites I open in 50+ tabs use the Immediate Mode GUI - will Firefox and OS struggle?
Any input appreciated.
Many thanks,
Anton
The text was updated successfully, but these errors were encountered: