Closed Bug 695693 Opened 13 years ago Closed 3 years ago

editor is laggy in current nightlies

Categories

(Core :: Graphics, defect)

x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: taras.mozilla, Assigned: bas.schouten)

Details

(Keywords: perf, Whiteboard: [Snappy:P3])

There is about a second lag when I type backspace in the wordpress editor on https://blog.mozilla.com/tglek/
Taras, do you have the same lag with this page? http://kazhack.org/contentEditable.xhtml
I can’t reproduce this bug on my current Linux build (pulled yesterday).
Sorry for the extreme lag on this, but I finally reproduced it. This lag never happens in your editor demo. It also isn't painfully obvious in wordpress when direct2d is disabled on my machine. I even tried copying my blog post into the editor and everything stays responsive.

However(with d2d on), editing a wordpress post is extremely painful. Simply moving the cursor around is laggy with d2d on. I wonder if that is because wordpress editor is hosted in a much more complex page with a big dom and we are invalidating the whole page on cursor movement :(

This is related to other bugs I filed, eg 695116. Is there a way to check if we are reflowing/repainting the whole page?
Taras tells me that this also happens when moving the caret using the arrow keys.  My hunches are either repainting too much of the page, or a D2D perf bug.  Assigning to Bas for investigation.  :-)
Assignee: nobody → bas.schouten
Component: Editor → Graphics
Keywords: perf
QA Contact: editor → thebes
Whiteboard: [Snappy]
Whiteboard: [Snappy] → [Snappy:p4]
Whiteboard: [Snappy:p4] → [Snappy:P3]
You can set the pref nglayout.debug.paint_flashing to true to see what gets repainted in your browser (it doesn't need to be a debug build, release builds work fine).
I checked with nglayout.debug.paint_flashing. Moving the caret, typing, scrolling the editor causes the whole page to repaint on my mozilla wordpress.
Where do I go to reproduce this so I can debug why we are painting too much?
(In reply to Timothy Nikkel (:tn) from comment #6)
> Where do I go to reproduce this so I can debug why we are painting too much?

perhaps Matt can advise
Flags: needinfo?(matt.woodrow)
(In reply to Wayne Mery (:wsmwk) from comment #7)
> (In reply to Timothy Nikkel (:tn) from comment #6)
> > Where do I go to reproduce this so I can debug why we are painting too much?
> 
> perhaps Matt can advise

I was asking how to reproduce the issue, I don't think Matt has any special info about that.
Flags: needinfo?(matt.woodrow)
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.