Vsync IPC messages starved by setTimeout in this testcase
Categories
(Core :: Layout, defect)
Tracking
()
People
(Reporter: mstange, Unassigned, NeedInfo)
References
(Blocks 1 open bug)
Details
Profile: https://share.firefox.dev/3UNCwBs
Steps to reproduce:
- Open this page in a tab: https://codepen.io/sschepis/full/wvqzOr
- Open another tab.
- Start the profiler.
- Switch back to the codepen tab.
- Wait for 5 seconds.
- Capture a profile.
Expected results:
In the profile, we should see one (attempted) refresh tick per received Vsync IPC message.
Actual results:
The profile on my machine https://share.firefox.dev/3UNCwBs shows many more IPCIn markers for PVsync::Msg_Notify than it shows RefreshDriverTick markers; there are around 5 IPC messages per tick.
The only other work on the thread is the setTimeout runnables.
Comment 1•9 months ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Gecko Profiler' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•9 months ago
|
||
This is kind of opposite what we had to do for sp3, since there we were running refreshdriver too often.
Not sure what could be done here. (We've been moving towards more similar behavior what Chrome has where vsync effectively doesn't have quite so high priority)
Reporter | ||
Comment 3•9 months ago
|
||
Well, in this profile it runs even less frequently than what you'd get if you did a setTimeout(refreshDriverTick, 0)
when receiving the IPC message.
Comment 4•9 months ago
|
||
That is what happens with sp3 too.
Comment 5•9 months ago
|
||
The severity field is not set for this bug.
:canova, could you have a look please?
For more information, please visit BugBot documentation.
Moving this back to the "General" component as it's not a profiler issue.
Comment 7•8 months ago
|
||
The severity field is not set for this bug.
:bhood, could you have a look please?
For more information, please visit BugBot documentation.
Updated•4 months ago
|
Updated•4 months ago
|
Comment 8•4 months ago
|
||
RefreshDriver is a layout thingie -> layout
Comment 9•4 months ago
|
||
The severity field is not set for this bug.
:alaskanemily, could you have a look please?
For more information, please visit BugBot documentation.
Description
•