2D canvas+HTML/CSS animation demo site broken on Firefox, works great on Chrome
Categories
(Core :: DOM: Animation, defect)
Tracking
()
Performance Impact | low |
People
(Reporter: andre, Unassigned)
References
(Depends on 1 open bug)
Details
(Keywords: perf:responsiveness)
Comment 1•9 years ago
|
||
Updated•9 years ago
|
Comment 2•9 years ago
|
||
Updated•9 years ago
|
Comment 3•6 years ago
|
||
AFICT, everything is working now, but the performance compared to Chrome is visibly more choppy.
Comment 4•6 years ago
|
||
There is a lot going on here:
- Some animations are running on the main thread because the layer size is too large (bug 1100357)
- Some animations are running on the main thread because they are being synchronized with geometric animations (at least a 'width' animation on a ::before pseudo) -- there are a few similar bugs to this where the "trello optimization" is tripping us up
- Some of it is likely just slow because painting SVG is slow (something WebRender may one day help with)
- Some of it is likely just because filter animations are not particularly fast (and probably should be able to run async in the future)
If we could fix the first two I think that would make a big difference (especially the second one since it affects the lens flare which is really prominent).
I think Sotaro had a look at bug 1100357 somewhat recently. I hope to look further rolling back the "trello optimization" in other bug 1506932 and bug 1512768.
Comment 5•6 years ago
|
||
What sotaro fixed is bug 1508522, it's for WebRender, I think on WebRender the first one is no longer a problem. (If I am wrong, sotaro will correct me)
Comment 6•6 years ago
|
||
Yes, he also looked at bug 1100357 (and bug 1324591) as part of that--I am hoping he will decide to continue looking at it :)
Comment 7•6 years ago
|
||
On my desktop, using an Nvidia 1070ti, this runs quite smoothly with D3D11. It's still not as good as Chrome, but the jank is very infrequent. However, with webrender the jank is very noticeable and with Basic composition the performance is ridiculously bad.
Here is the webrender profile: http://bit.ly/2TkFwFN
Comment 8•6 years ago
|
||
Looking at it again, this actually looks better on Firefox with D3D11 than Chrome. Even Chrome janks every 3-4 seconds.
Updated•6 years ago
|
Updated•3 years ago
|
Updated•2 years ago
|
Description
•