Skip to content

Avoid blocking in glGetQueryObjecti64v for direct scanout

This MR assumes that the Wayland transaction mechanism results in zero buffer rendering time before presentation in the direct scanout case, and thus removes the need to query for GPU timestamps using glGetQueryObjecti64v.

See commit messages for more information.

It works quite well from initial testing; fixes dynamic max rendering time estimations, reduces stutter/missed frames, improves frame pacing and stabilizes frame timings. This is also required for smooth VRR experience with AMD GPUs.

Review and testing would be appreciated.

Closes: #2766 (closed)

Edited by Dor Askayo

Merge request reports

Loading