Closed Bug 158782 Opened 23 years ago Closed 23 years ago

Mozilla exhibits a lag in displaying typed text

Categories

(Core :: DOM: Editor, defect, P3)

defect

Tracking

()

VERIFIED FIXED
mozilla1.2beta

People

(Reporter: moz-bugzilla, Assigned: kinmoz)

References

Details

(Keywords: perf)

Attachments

(1 file, 1 obsolete file)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.1b) Gecko/20020722 BuildID: 2002072203 Mozilla 1.1b doesn't display characters as they are typed. Rather, there is a lag between the time a character is typed vs. when it actually shows up on screen. This is especially evident the faster you type. Reproducible: Always Steps to Reproduce: Type in the URL bar or in any form text box. Actual Results: There is a lag between typing and actually seeing the characters typed. Expected Results: There should be no noticeable lag.
Keywords: perf
*** This bug has been marked as a duplicate of 83205 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
I don't think this is a dup of 83205, but rather a side effect of fixing bug 141900.
Status: RESOLVED → UNCONFIRMED
Depends on: 141900
Resolution: DUPLICATE → ---
Confirmed on WinXP trunk build 2002072104.
Status: UNCONFIRMED → NEW
Ever confirmed: true
*** Bug 160920 has been marked as a duplicate of this bug. ***
Reproduced in this `Additional Comments:' field right now, build 2002080503, Mac OS 9.2.2, iMac DV 450 MHz, 64 MB RAM. --> All/All based on dup. The delay is directly proportional to the amount of text following the caret until the end of the paragraph. - If there's no text following the caret, the display keeps up with my typing fairly comfortably (though it would probably have trouble with extremely fast typists). - If there's one line of text (80 characters) to the right, and I type a group of words at constant speed, the caret display keeps up, but the text is never displayed (thanks to the fix for bug 141900) until I finish. - If there are three lines of text (240 characters) between the caret and the end of the paragraph, typing slows down so much that Mozilla forgets large chunks of the characters I typed and it comes out in a complete jumble. (Sample from my previous attempt at typing this: `Mozll culyforgetcers I typed and it comes out in a complete jumble.') In this case, even the caret movement can't keep up, and the text display never gets a chance.
Severity: normal → major
OS: MacOS X → All
Hardware: Macintosh → All
*** Bug 171693 has been marked as a duplicate of this bug. ***
*** Bug 165032 has been marked as a duplicate of this bug. ***
*** Bug 163367 has been marked as a duplicate of this bug. ***
Bug 163367 was about backspacing in the URL bar, instead of typing forward, but the essentials are the same. Is the event model flexible enough that we could synchronously paint the character that was typed as we process the keyboard event, rather than invalidating the area and waiting for painting to occur later? (Or clear the area in the case of a backspace)? If we are invalidating/waiting, this may be affected by event starvation.
Severity: major → normal
Depends on: 165130
As a note: when Mozilla is exhibiting this lag, my CPU usage goes up to nearly 100% while I'm typing but then returns to normal when I stop. (I'm not sure if this was obvious from the comments so far) I notice it mainly when composing an email message or reply to somebody. I'm not sure if we have more than one bug at hand here....
Status: NEW → ASSIGNED
Priority: -- → P3
Target Milestone: --- → mozilla1.2beta
*** Bug 172139 has been marked as a duplicate of this bug. ***
Blocks: 174823
This bug has been temporarily fixed on the TRUNK with the checkin of attachment 101640 [details] [diff] [review] from bug 141900 during the mozilla1.2beta milestone. It basically disables the code which landed as part of attachment 87307 [details] [diff] [review] (async reflow and painting for text widgets) until all issues blocking bug 174823 can be resolved.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → FIXED
*** Bug 174929 has been marked as a duplicate of this bug. ***
verifying fixed on 2002101708, Win2K.
*** Bug 152356 has been marked as a duplicate of this bug. ***
verified per comments.
Status: RESOLVED → VERIFIED
Aaargh... midair collisions. I am still seeing some minor lags when typing a message in the send window (plain text). It is not as bad as it was before this bug was fixed, but it is still there. CPU utilization is unusually high when I am typing. Each keypress causes a spike in CPU utilization from 50-90%, with some going to 100% (which causes a lag). I typed a string into Mozilla mail and into Notepad to compare the CPU utilization, and the results were striking. I sent the wrong image; the first one has only Mozilla Mail. There is almost no detectable change in CPU utilization when typing into Notepad and letting it sit idle; in Mozilla, it is very obvious. In the image, you can plainly see when typing began-- in about the center of the graph. I'll send the proper attachment in a minute. Using 2002101708/WinXP SP1/ 900 MHz AMD Duron/ 320 mb RAM.
I am now noticing delayed typing with the new version of sea monkey. It happens in email and at the address bar.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: