Consider replacing "favor performance mode" with "favor native events right after RefreshDriver tick"

NEW
Unassigned

Status

()

Core
Widget
2 years ago
2 years ago

People

(Reporter: smaug, Unassigned)

Tracking

(Blocks: 1 bug)

36 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: tpi:-)

Attachments

(2 attachments)

(Reporter)

Description

2 years ago
Instead of totally removing "favor performance" mode, we could perhaps have the mode changing based on the state we're in animation frame. Right after a RefreshDriver tick we could try to process more user events (native events) and then closer to the tick focus on Gecko events. This would hopefully reduce the pressure around tick and lead to fewer missed ticks.
(Reporter)

Comment 1

2 years ago
Created attachment 8756069 [details] [diff] [review]
v1

Something to try out. This might not improve responsiveness or anything, but
would make the setup simpler, which is a good thing itself.
We'll, in theory this could make us miss refresh driver ticks less frequently.

Let's see what the tryserver likes about this.

https://treeherder.mozilla.org/#/jobs?repo=try&revision=c95827571e1ade183f7b6b42ef0db9245b10db2c

Updated

2 years ago
Whiteboard: tpi:-
You need to log in before you can comment on or make changes to this bug.