Closed Bug 713992 Opened 12 years ago Closed 1 year ago

-moz-linear-gradient causing significant performance issues in FF9 / Win7

Categories

(Core :: Graphics, defect)

9 Branch
x86
Windows 7
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: dev, Unassigned)

References

Details

Attachments

(2 files)

Attached file mozback.html
User Agent: Mozilla/5.0 (Ubuntu; X11; Linux i686; rv:8.0) Gecko/20100101 Firefox/8.0
Build ID: 20111115184056

Steps to reproduce:

We are having a great performance issue with Windows 7 and FF9. Having a CSS background composed of 3 linear gradients:

background: -moz-repeating-linear-gradient(left top 0deg, rgba(150, 150, 150, 0.1), transparent 1px, transparent 5px, transparent 6px) repeat scroll 0 0pt,
            -moz-repeating-linear-gradient(left top 47deg, rgba(150, 150, 150, 0.1), transparent 1px, transparent 5px, transparent 6px) repeat scroll 0 0pt,
            -moz-repeating-linear-gradient(left top -47deg, rgba(150, 150, 150, 0.1), transparent 1px, transparent 5px, transparent 6px) repeat scroll 0 0 transparent;

When I remove the background everything is rendered as normal.

Probably related to this bugs:
https://bugzilla.mozilla.org/show_bug.cgi?id=644444
https://bugzilla.mozilla.org/show_bug.cgi?id=672931


Actual results:

It takes up to 10 seconds to display (any other CSS events, like showing or hiding a div over that background using only css, are delayed).

I tested in 3 different computers, all running Windows 7 (tested on 32bits) and the problem is the same. On Windows XP and Linux there is no such problem. 


Expected results:

Should render it without delay as it happens in WinXP and Linux.
OS: Linux → Windows 7
See Also: → 672931
I believe there is already a bug on this. The Azure-Thebes wrapper work should resolve this issue, I'll test this sometime soon, but it won't be fixed 'soon'. Fixing this in the current cairo situation is very hard.
likely Bug 657603
Attachment #584677 - Attachment mime type: text/plain → text/html
This is WFM/fixed using Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0 ID:20130116073211

Anyone confirm?
CPU (Intel single core 1.06Ghz) to 100% for 3 seconds. I too think it's related to bug 657603. Other types of linear-gradient make if freeze for longer like the attached one.
I can reproduce the high CPU usage problem if HWA disabled, but cannot reproduce when HWA enabled.

http://hg.mozilla.org/mozilla-central/rev/52c92a6c6e24
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20130126 Firefox/21.0 ID:20130126030941
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attachment #706784 - Attachment mime type: text/plain → text/html
Severity: normal → S3

This performs very good now.

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: