RESOLVED FIXED 225245
[GPUP] Poll videoPlaybackQualityMetrics at the frequency is it accessed by script
https://bugs.webkit.org/show_bug.cgi?id=225245
Summary [GPUP] Poll videoPlaybackQualityMetrics at the frequency is it accessed by sc...
Eric Carlson
Reported 2021-04-30 13:42:11 PDT
Fetching videoPlaybackQualityMetrics is expensive, so don't update it every time cached state is updated.
Attachments
Patch (15.54 KB, patch)
2021-04-30 14:31 PDT, Eric Carlson
no flags
Patch (15.53 KB, patch)
2021-04-30 15:09 PDT, Eric Carlson
no flags
Eric Carlson
Comment 1 2021-04-30 13:42:24 PDT
Eric Carlson
Comment 2 2021-04-30 14:31:13 PDT
Jer Noble
Comment 3 2021-04-30 14:52:41 PDT
Comment on attachment 427448 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=427448&action=review > Source/WebKit/GPUProcess/media/RemoteMediaPlayerProxy.cpp:997 > + static const double metricsAdvanceUpdate = 0.25; Can we make this Seconds?
Eric Carlson
Comment 4 2021-04-30 15:09:57 PDT
EWS
Comment 5 2021-04-30 16:36:32 PDT
Committed r276863 (237211@main): <https://commits.webkit.org/237211@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 427457 [details].
Simon Fraser (smfr)
Comment 6 2021-04-30 20:46:01 PDT
Comment on attachment 427457 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=427457&action=review > Source/WebKit/WebProcess/GPU/media/MediaPlayerPrivateRemote.cpp:1186 > + auto now = WallTime::now(); Is WallTime the right thing to use here, instead of MonotonicTime?
Eric Carlson
Comment 7 2021-05-03 14:56:34 PDT
(In reply to Simon Fraser (smfr) from comment #6) > Comment on attachment 427457 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=427457&action=review > > > Source/WebKit/WebProcess/GPU/media/MediaPlayerPrivateRemote.cpp:1186 > > + auto now = WallTime::now(); > > Is WallTime the right thing to use here, instead of MonotonicTime? Good point, thanks. I'll fix that in https://bugs.webkit.org/show_bug.cgi?id=225329.
Note You need to log in before you can comment on or make changes to this bug.