Open Bug 1778399 Opened 2 years ago Updated 2 years ago

Terrible input lag on twitch.tv chat

Categories

(Core :: JavaScript Engine, defect, P2)

Firefox 104
defect

Tracking

()

REOPENED

People

(Reporter: Hinatori, Unassigned, NeedInfo)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:104.0) Gecko/20100101 Firefox/104.0

Steps to reproduce:

Occasionally experience terrible input lag when using twitch.tv chat. I managed to capture a performance profile which shows the issue.

Actual results:

Chat become unusable due to bad input lag.

Expected results:

Users expect to have zero input lag when typing something.

The Bugbug bot thinks this bug should belong to the 'Core::Layout: Form Controls' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Layout: Form Controls
Product: Firefox → Core

Looks to be lots of time spent in JS

Component: Layout: Form Controls → JavaScript Engine

Here is another capture that shows the issue. Notice the DomEvent Keypress duration on marker chart.

In the second profile the problem seems to be magnified by the GC major which is happening concurrently, which requires that we use write barrier.
Making key-presses go from ~300ms to ~520ms.

Then the code seems to spend a lot of time in Proxy related code, as well as js::Call and js::MaybeEnterJit, which suggests that we should optimize the code and start JIT-ing code path for making these calls instead of jumping into C++ to return back in the JIT.

Iain, would you know who might be looking at this issue?

Blocks: sm-opt-jits
Severity: -- → S4
Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Flags: needinfo?(iireland)
Priority: -- → P2
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: FIXED → ---
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: