Closed Bug 611963 Opened 9 years ago Closed 8 years ago
border-radius makes ff4 slow, unresponsive, high CPU
Product: Firefox → Core
QA Contact: general → general
Version: unspecified → Trunk
Spiros, does turning off accelerated layers make this page fast, by any chance?
blocking2.0: --- → ?
Component: General → Graphics
QA Contact: general → thebes
Please renom if & when this bug gets confirmed.
blocking2.0: ? → ---
(In reply to comment #1) > Spiros, does turning off accelerated layers make this page fast, by any chance? I changed (with today's nightly) layers.accelerate-all to false, and layers.accelerate-none to true, restarted and retried. No change at all. -S
it is not so difficult to confirm, just click the link and scroll
It works just fine for me on Windows 7 with Direct2D. But indeed when using GDI it's quite slow. I remember roc telling me about some stuff we do for border-radius that can make it quite slow. I'm guessing it's something fillrate bound which is why it doesn't show with Direct2D. Looping in roc.
I'm pretty sure this is another case of clipping to border-radius being slow due to applying a mask for every paint operation.
The page doesn't seem to use overflow: hidden, so I'm a little confused as to why Firefox 3.6 is fast but mozilla-central is slow.
The element with border-radius is overflow:auto.
cairo 1.10 speeds this up significantly. (Not saying we shouldn't do the pushgroup thing, I'm working on that.)
Status: UNCONFIRMED → NEW
Ever confirmed: true
tested with today's nightly, still exists.
I do not see this improvement, my cpu is amd athlon X2 4200+ and graphics card is 9800GT. Scrolling the test page with the mouse (dragging the scrollbar to the bottom) takes about 5 seconds to complete (it should be instant), while the scrollbar stops at 2-3 positions to recalculate something. I'd say this is something to be fixed for the release.
This is much improved for me in the latest nightly.
yes it is improved indeed. It takes about 2.5-3 seconds to scroll to bottom, it's almost double speed than before. It is not fixed yet though.
Slow in relation to FF3 and other browsers. The difference is huge. Initial rendering doesn't seem slower, scrolling does.
Tested again in my work's pc (Intel E6850/Vista) Chrome: ~560ms FF4: ~1200ms FF3: ~700ms So FF4 much slower than FF3, and this is far worse in slower PCs. For this comparison, I added -moz-border-radius as well to the stylesheet.
Testing on a Windows 7 machine, with hardware acceleration disabled, scrolling the testcase is horribly slow on Firefox 4b9, somewhat improved (but still not great) on Firefox 4 release, and smooth on Firefox 8. CPU usage improves significantly from Firefox 4b9 to Firefox 4, and improves some more from Firefox 4 to Firefox 8. With hardware acceleration enabled, scrolling is somewhat slow on Firefox 4b9, and smooth in Firefox 4 release and Firefox 8. CPU usage stays about the same.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.