Closed
Bug 804271
Opened 12 years ago
Closed 1 year ago
Graphics jank, slow tab switch times while using social
Categories
(Core :: Graphics: Layers, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: taras.mozilla, Unassigned)
References
Details
(Whiteboard: [Snappy:P1])
....D3D10::EndTransaction takes a long time with social on. Not sure why. http://people.mozilla.com/~bgirard/cleopatra/?report=ee60e06ee31346a692d28489e6267c8689b5e808
Reporter | ||
Comment 1•12 years ago
|
||
My tab-switch times are 1.5-2x slower when the social sidebar is shown
Summary: Graphics jank while using social → Graphics jank, slow tab switch times while using social
Whiteboard: [Snappy] → [Snappy:P1]
Reporter | ||
Comment 2•12 years ago
|
||
(In reply to Taras Glek (:taras) from comment #1) > My tab-switch times are 1.5-2x slower when the social sidebar is shown according to FX_TAB_SWITCH_TOTAL_MS
Reporter | ||
Comment 3•12 years ago
|
||
(In reply to Taras Glek (:taras) from comment #1) > My tab-switch times are 1.5-2x slower when the social sidebar is shown According to paint_flashing, the sidebar is not being redrawn every time.
Reporter | ||
Comment 4•12 years ago
|
||
I see nsCSSRendering::PaintBackground responsible for 7% of the samples while holding down ctrl+tab with social sidebar on, it doesn't showup without. Maybe we are processing social layout on every tab switch?
Comment 5•12 years ago
|
||
adding social crew to get this on their radar.
Comment 6•12 years ago
|
||
See also bug 801488 - that implies we are doing extra work when resizing the app window, even though that resize generally doesn't change the size of the sidebar, just the app content area.
Comment 7•12 years ago
|
||
Could this be caused by bug 805331?
(In reply to :Gavin Sharp (use gavin@gavinsharp.com for email) from comment #7) > Could this be caused by bug 805331? It could be related, but the patches in bug 805331 won't fix it.
It looks like we're just doing too much painting. Not sure why it should affect tab switching though, since we repaint tabs then anyway.
Reporter | ||
Comment 10•12 years ago
|
||
http://people.mozilla.com/~bgirard/cleopatra/#report=8213fa38182f552528fe01f235c91dbe4e5019f9&javascriptOnly=true&selection=%255B%2522%28root%29%2522%252C%2522messageHandler%28%29%2520%2540%2520FrameWorker.jsm%253A390%2522%252C%2522_messageHandler%28%29%2520%2540%2520FrameWorker.jsm%253A347%2522%252C%2522fw_AbstractPort_onmessage%28%29%2520%2540%2520MessagePortBase.jsm%253A41%2522%255D this profile contains a large amount of social activity coming from FrameWorker.jsm
Comment 11•12 years ago
|
||
(In reply to Taras Glek (:taras) from comment #10) > http://people.mozilla.com/~bgirard/cleopatra/ > #report=8213fa38182f552528fe01f235c91dbe4e5019f9&javascriptOnly=true&selectio > n=%255B%2522%28root%29%2522%252C%2522messageHandler%28%29%2520%2540%2520Frame > Worker. > jsm%253A390%2522%252C%2522_messageHandler%28%29%2520%2540%2520FrameWorker. > jsm%253A347%2522%252C%2522fw_AbstractPort_onmessage%28%29%2520%2540%2520Messa > gePortBase.jsm%253A41%2522%255D this profile contains a large amount of > social activity coming from FrameWorker.jsm Most of the time spent under FrameWorker.jsm is in Facebook script - can you file a new bug in Firefox::SocialAPI: Providers so that some Facebook people can look into it?
Reporter | ||
Comment 12•12 years ago
|
||
(In reply to :Gavin Sharp (use gavin@gavinsharp.com for email) from comment #11) > (In reply to Taras Glek (:taras) from comment #10) > > http://people.mozilla.com/~bgirard/cleopatra/ > > #report=8213fa38182f552528fe01f235c91dbe4e5019f9&javascriptOnly=true&selectio > > n=%255B%2522%28root%29%2522%252C%2522messageHandler%28%29%2520%2540%2520Frame > > Worker. > > jsm%253A390%2522%252C%2522_messageHandler%28%29%2520%2540%2520FrameWorker. > > jsm%253A347%2522%252C%2522fw_AbstractPort_onmessage%28%29%2520%2540%2520Messa > > gePortBase.jsm%253A41%2522%255D this profile contains a large amount of > > social activity coming from FrameWorker.jsm > What does the frameworker provide? shouldn't clients be doing expensive processing in a worker thread? > Most of the time spent under FrameWorker.jsm is in Facebook script - can you > file a new bug in Firefox::SocialAPI: Providers so that some Facebook people > can look into it?
Comment 13•12 years ago
|
||
(In reply to Taras Glek (:taras) from comment #12) > What does the frameworker provide? shouldn't clients be doing expensive > processing in a worker thread? It's a re-implementation of a SharedWorker using a JS sandbox on the main thread. If we properly supported real SharedWorkers (bug 643325) we'd be in a much better situation...
Is it just running a lot of JS and hogging the event loop?
Comment 15•12 years ago
|
||
Yes.
Reporter | ||
Comment 16•12 years ago
|
||
(In reply to :Gavin Sharp (use gavin@gavinsharp.com for email) from comment #13) > (In reply to Taras Glek (:taras) from comment #12) > > What does the frameworker provide? shouldn't clients be doing expensive > > processing in a worker thread? > > It's a re-implementation of a SharedWorker using a JS sandbox on the main > thread. If we properly supported real SharedWorkers (bug 643325) we'd be in > a much better situation... Was SharedWorker ever considered a blocker for social? Is it something that can be retrofitted in subsequent releases?
Comment 17•12 years ago
|
||
I think it was too large of an undertaking to block social, and we already had a workable (less optimal) alternative. The plan has always been to switch to a SharedWorker when possible.
Updated•2 years ago
|
Severity: normal → S3
Comment 18•1 year ago
|
||
Social sidebar no longer exists.
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•