editor is laggy in current nightlies

NEW
Assigned to

Status

()

Core
Graphics
6 years ago
4 years ago

People

(Reporter: (dormant account), Assigned: bas)

Tracking

({perf})

Trunk
x86
Windows 7
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [Snappy:P3])

(Reporter)

Description

6 years ago
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).
(Reporter)

Comment 2

6 years ago
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?

Comment 3

6 years ago
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
(Reporter)

Updated

6 years ago
Whiteboard: [Snappy]

Updated

6 years ago
Whiteboard: [Snappy] → [Snappy:p4]
(Reporter)

Updated

6 years ago
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).
(Reporter)

Comment 5

6 years ago
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?

Comment 7

4 years ago
(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)
You need to log in before you can comment on or make changes to this bug.