Closed
Bug 790205
Opened 12 years ago
Closed 12 years ago
browser.newtab.preload=true causes excessive invalidation
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
RESOLVED
DUPLICATE
of bug 786484
People
(Reporter: jaws, Unassigned)
Details
(Whiteboard: [Snappy])
Attachments
(1 file, 1 obsolete file)
3.96 KB,
text/plain
|
Details |
We can remove the opacity:.3 style on the invalid identity-block icon and replace it with a precomputed translucent icon. This will reduce some extra drawing commands.
Reporter | ||
Comment 1•12 years ago
|
||
We also should move these icons to a single sprite for perf reasons.
Whiteboard: [Snappy]
Comment 2•12 years ago
|
||
What kind of drawing commands? What exactly is the overhead and when does it kick in? Let's not micro-optimize at the cost of bloating code and increasing maintenance costs without the wins identified very clearly as being worthwhile.
Reporter | ||
Comment 3•12 years ago
|
||
Bas has a tool that is showing the drawing commands. The opacity of this icon is causing the whole toolbar to be cleared and redrawn when the icon opacity gets applied.
Comment 4•12 years ago
|
||
This sounds like a bug. Will bug 539356 fix this? Some other bug that's already filed? It's generally preferable to get the root cause fixed in such cases, as they'll likely affect web content too.
Reporter | ||
Comment 5•12 years ago
|
||
Bug 539356 may fix it but it's not done yet. I agree that fixing the root cause is preferable, but I'm investigating ways that we can be more optimal given our current environment.
Attachment #660061 -
Flags: review?(dao)
Comment 6•12 years ago
|
||
(In reply to Jared Wein [:jaws] from comment #5) > Bug 539356 may fix it but it's not done yet. AFAIK most parts landed and last I heard it was targeting Firefox 18. It would also be nice to verify whether it does or doesn't fix this, because if it doesn't, we'll need to file a bug on this.
Comment 7•12 years ago
|
||
Comment on attachment 660061 [details] [diff] [review] Patch (In reply to Jared Wein [:jaws] from comment #3) > The opacity of this > icon is causing the whole toolbar to be cleared and redrawn when the icon > opacity gets applied. Just tested this via nglayout.debug.paint_flashing and I don't see it.
Attachment #660061 -
Flags: review?(dao) → review-
Reporter | ||
Comment 8•12 years ago
|
||
There is an older (Sep 5) build of Bas' paint tool on his people.m.o website (http://people.mozilla.org/~bschouten/player2d.exe). This patch alone might not do the trick, but combined with bug 790225 we believe that it might fix the unnecessary clearing of the toolbars. Bas says that he can see the extra paint flashing with this patch. We could merge this bug with bug 790225, but I'd like to keep the patches separate.
Comment 9•12 years ago
|
||
I mean I don't even see the toolbar being redrawn when the opacity changes without this patch, using the latest nightly.
Reporter | ||
Comment 10•12 years ago
|
||
To see the toolbar being redraw on today's Nightly, do the following: 1) Turn on paint flashing 2) Restore the window (not maximized) 3) Go to about:jared 4) See the toolbars flash 5) Hit CTRL+L to focus the location bar 6) Go to about:dao Expected: Only the identity icon and possibly the lucky charms should flicker. Actual: Both the tabs and navigation toolbar flicker.
Reporter | ||
Comment 11•12 years ago
|
||
Simpler steps to reproduce: 1) Turn on paint flashing 2) Give focus to the location bar 3) Type one letter to invalidate the address Without the patch: The toolbars will flicker. With the patch: Only the location bar will change colors.
Comment 12•12 years ago
|
||
(In reply to Jared Wein [:jaws] from comment #11) > Simpler steps to reproduce: > > 1) Turn on paint flashing > 2) Give focus to the location bar > 3) Type one letter to invalidate the address > > Without the patch: > The toolbars will flicker. > > With the patch: > Only the location bar will change colors. I used these steps for comment 9. Still can't reproduce. Windows 7, hardware acceleration enabled.
Reporter | ||
Comment 13•12 years ago
|
||
I can make a screencast if you would like. I have force-enabled acceleration and it still happens on Windows 7.
Comment 14•12 years ago
|
||
(In reply to Jared Wein [:jaws] from comment #13) > I can make a screencast if you would like. Feel free, but this won't really help us move forward. I could make a screencast too :) We need to somehow figure out what exactly is going wrong on your side. Can you reproduce it in a new profile?
Comment 15•12 years ago
|
||
I can't reproduce this with hardware acceleration disabled either.
Comment 16•12 years ago
|
||
Nor with a new profile. (The one I used before was mostly virgin anyway, though.)
Updated•12 years ago
|
Assignee: jaws → nobody
Component: Theme → Layout
Product: Firefox → Core
Summary: Replace the opacity styled-invalid identity block icon with a translucent icon → Opacity styled invalid identity block icon causes excessive invalidation
Updated•12 years ago
|
Blocks: 753448
Status: ASSIGNED → NEW
Component: Layout → General
Product: Core → Firefox
Summary: Opacity styled invalid identity block icon causes excessive invalidation → browser.newtab.preload=true causes excessive invalidation
Comment 17•12 years ago
|
||
I think we should probably back out bug 753448, since the problem it tries to fix (bug 752839) is already fixed independently by bug 716108.
Comment 18•12 years ago
|
||
Attachment #660061 -
Attachment is obsolete: true
Reporter | ||
Comment 19•12 years ago
|
||
Please do not morph this bug. Preloading the new tab page is about thumbnail loading, not tab animations.
Reporter | ||
Comment 20•12 years ago
|
||
Please file a new bug.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
Summary: browser.newtab.preload=true causes excessive invalidation → Opacity styled invalid identity block icon causes excessive invalidation
Comment 21•12 years ago
|
||
This bug has STR and the relevant background information and doesn't serve any other purpose anymore.
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Summary: Opacity styled invalid identity block icon causes excessive invalidation → browser.newtab.preload=true causes excessive invalidation
Comment 22•12 years ago
|
||
Oh, there's already bug 786484. Basically the same issue.
No longer blocks: 753448
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•