Bug 210571 - DidFirstLayerFlush IPC can be head-of-line-blocked and delay first paint by 200+ ms on process swap
Summary: DidFirstLayerFlush IPC can be head-of-line-blocked and delay first paint by 2...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ben Nham
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-04-15 14:09 PDT by Ben Nham
Modified: 2020-04-15 22:44 PDT (History)
10 users (show)

See Also:


Attachments
Patch (2.47 KB, patch)
2020-04-15 14:14 PDT, Ben Nham
no flags Details | Formatted Diff | Diff
Patch (2.47 KB, patch)
2020-04-15 14:16 PDT, Ben Nham
no flags Details | Formatted Diff | Diff
Patch (2.47 KB, patch)
2020-04-15 14:26 PDT, Ben Nham
no flags Details | Formatted Diff | Diff
Patch for landing (2.47 KB, patch)
2020-04-15 15:54 PDT, Ben Nham
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Nham 2020-04-15 14:09:07 PDT
DidFirstLayerFlush IPC can be head-of-line-blocked and delay first paint by 200+ ms on process sawp
Comment 1 Ben Nham 2020-04-15 14:14:05 PDT
Created attachment 396571 [details]
Patch
Comment 2 Ben Nham 2020-04-15 14:14:50 PDT
<rdar://problem/61755552>
Comment 3 Radar WebKit Bug Importer 2020-04-15 14:15:08 PDT
<rdar://problem/61847651>
Comment 4 Ben Nham 2020-04-15 14:16:09 PDT
Created attachment 396574 [details]
Patch
Comment 5 Geoffrey Garen 2020-04-15 14:20:00 PDT
Comment on attachment 396574 [details]
Patch

r=me

Seems like a great way to fix this particular issue (even without adding a general priority mechanism to task scheduling). I'll wait for Tim and Simon to tell me why I'm wrong :P.
Comment 6 Ben Nham 2020-04-15 14:26:31 PDT
Created attachment 396576 [details]
Patch
Comment 7 Ben Nham 2020-04-15 15:54:57 PDT
Created attachment 396584 [details]
Patch for landing
Comment 8 EWS 2020-04-15 16:18:05 PDT
Committed r260158: <https://trac.webkit.org/changeset/260158>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 396584 [details].
Comment 9 Antti Koivisto 2020-04-15 22:44:36 PDT
Note that I have a patch in https://bugs.webkit.org/show_bug.cgi?id=208413 for general RunLoop priorities if we want to do something more generic.