Open Bug 1813084 Opened 2 years ago Updated 2 years ago

Add support for EGL_ANGLE_sync_control_rate extension

Categories

(Core :: Graphics: WebRender, enhancement)

Unspecified
Linux
enhancement

Tracking

()

UNCONFIRMED

People

(Reporter: pasik, Unassigned)

References

(Blocks 2 open bugs)

Details

Steps to reproduce:

Mesa now includes EGL_ANGLE_sync_control_rate extension for vsync / video timing synchronization (so works for both Wayland and X11).

The issues of the initial implementation were recently fixed in Mesa, eg. the performance regression of the extension is fixed, and also support for multiple displays is now added to the implementation (https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20665)

Earlier firefox issue related to EGL video synchronization: https://bugzilla.mozilla.org/show_bug.cgi?id=1640779

Actual results:

Firefox currently handles video synchronization differently for X11 (GLX) and Wayland.

Expected results:

EGL_ANGLE_sync_control_rate extension in theory should be easier for firefox as it can be used for both X11 and Wayland.

Nvidia proprietary drivers don't have support for EGL_ANGLE_sync_control_rate though (at least not yet).

OS: Unspecified → Linux
Blocks: linux-egl

it can be used for both X11 and Wayland

Hi, thanks for bringing this up. Regarding Wayland - does the implementation use frame callbacks? Because if not, which is what I'd assume, it's maybe more useful for constantly repainting apps like games. Toolkits or apps like Firefox AFAIK would rather make use of frame callbacks for stronger throttling and thus lower energy use.

Flags: needinfo?(pasik)

(In reply to Robert Mader [:rmader] from comment #1)

it can be used for both X11 and Wayland

Hi, thanks for bringing this up. Regarding Wayland - does the implementation use frame callbacks?

I took a look at the code and the patches, and actually it looks like the patches so far only implement EGL_ANGLE_sync_control_rate for EGL/X11. So the Wayland implementation hasn't been done yet, unless I missed something.

I'll open a Mesa issue about the Wayland support for EGL_ANGLE_sync_control_rate

Flags: needinfo?(pasik)

"Wayland support for EGL_ANGLE_sync_control_rate": https://gitlab.freedesktop.org/mesa/mesa/-/issues/8177

We can look at it when it hits MESA mainline.

You need to log in before you can comment on or make changes to this bug.