Closed Bug 1670444 Opened 4 years ago Closed 4 years ago

[Wayland] Estimate refresh rate from frame callbacks

Categories

(Core :: Graphics, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
84 Branch
Tracking Status
firefox84 --- fixed

People

(Reporter: rmader, Assigned: rmader)

References

Details

Attachments

(1 file)

Since bug 1653737 Webrender wants to have an estimate for the next presentation time. Currently this is derived from a hardcoded 60Hz refresh rate - lets add a simple heuristic to provide a better guess when using the Wayland Vsync source, so we get better results on non-60Hz displays.

For now, just do that based on frame callbacks - we can improve it using the presentation time protocol later.

This implements a very simplistic estimate of the refresh interval.
While not very accurate, it should sligtly improve frame timing on
non-60Hz screens and could prove handy in other situations.

Once the Wayland Vsync source is propperly wired up we can improve
it - potentially with the presentation time protocol or with some
smarter logic.

Severity: -- → S3
Priority: -- → P3
Assignee: nobody → robert.mader
Attachment #9180922 - Attachment description: Bug 1670444 - [Wayland] Estimate refresh rate from frame callbacks → Bug 1670444 - [Wayland] Some vsyncsource improvements, r?stransky
Status: NEW → ASSIGNED
Pushed by malexandru@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6451d7ca2912
[Wayland] Some vsyncsource improvements, r=stransky
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 84 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: