-
Notifications
You must be signed in to change notification settings - Fork 144
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
low performance on Firefox Quantum #31
Comments
FF has been slow and resources eating its whole existence. Quantum is
slightly better on high performing processors other than that it's all the
same to be honest.
…On Mon, Nov 27, 2017 at 4:38 AM, Marko Mitranic ***@***.***> wrote:
Performance is really bad on FF quantum. Oddly enough, not from the start,
it works fine for the first 5s, and then it slows down and kills my CPU.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#31>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEJJhwzSBg_rXUhe_n5f_QfFufi33Z7Qks5s6pEVgaJpZM4Qrbd9>
.
--
*Mohamed Anis Dahmani*
------
*Web designer / Developer*
|
tl;dr: Ah-ha! 🎉 Set If you don't mind one missing effect, try setting
Alternately, you can hack SnowStorm to set its inner Meandering performance / investigation thoughts follow 🤔 Oh, wow. Checking here on Firefox 57 (Quantum) on OS X Sierra (10.12.6), SnowStorm performance seems to be more sluggish. I'm not sure if this applies also to Windows, etc. On this quad-core Mac Mini, the main and helper Firefox processes are eating over 100% CPU. Safari hovers around 50%, by comparison, but the snow isn't super smooth. Chrome runs fast and smoothest of the three, and takes about 30% CPU. A performance profile shows Chrome rendering at 60fps, albeit close to the threshold, with 15-17 msec of work per frame on this 2011-era Mac Mini. ;) SnowStorm is not free, because it involves moving a lot of elements around simultaneously on pages of varying width and height. It seems Mozilla effectively rewrote Firefox with Quantum, so I wouldn't be surprised if their rendering optimizations (and I'm guessing, here) aren't really geared for constant repainting of small areas of the screen. And/or, something about style invalidation / recalculation being really expensive in this case. Snowstorm causes frequent and specific layout invalidation, and style recalculation on each SnowStorm has a Browsers can also factor in A quick hack to switch to Testing more in Firefox, even having the snow From what I'm seeing, simply animating snow is quite, er, glacial in Firefox. 👻 🐍 (Boo, hiss.) I've also neglected to mention |
@scottschiller Wow, thanks for the post, i really enjoyed reading it. Now, i am not your-level-of-expert on the field of JS animation, but i must admit, i am satisfied that i actually covered most of the proposed solutions while debugging, 👍 for me... Back to topic, i have realized that it is a quantum specific CPU problem, when i noticed that if i trigger another part of jquery-based animation on that page, snow starts working properly for the duration of that animation. Which made sense, in case that quantum is perhaps trying to scale back on CPU when only snow was running. That is when i tried forcing hardware acceleration and using will change, but to no avail, CPU drop was less than 10%. Either way, i have also tested some canvas based solutions, i must agree in that they do work far, far better, but on the other hand they need pointer-events to be click thorugh, and while that kind of works with most™ modern browsers, it still seems to still catch all click events for JS... So that is a no-go. As for snowstick, will try tomorrow morning thanks! |
Performance is really bad on FF quantum. Oddly enough, not from the start, it works fine for the first 5s, and then it slows down and kills my CPU.
The text was updated successfully, but these errors were encountered: