mahkoh / jay

A Wayland Compositor
GNU General Public License v3.0
206 stars 10 forks source link

Feature: Async page flips with the tearing-control protocol #215

Open tadeokondrak opened 3 weeks ago

tadeokondrak commented 3 weeks ago

In cd47baa9342a65fa47a0013bdce21616cb1b0530 the tearing-control-v1 protocol was added but the kernel didn't have support for async page flips with the atomic DRM API yet. As far as I understand this has changed and this is possible now.

mahkoh commented 3 weeks ago

Jay is currently not doing proper damage tracking. It errs on the side of damaging everything even in situations where this is not necessary (and even so, I discover with some frequency situations where we incorrectly skip damaging). This is countered by always waiting for page flip events which throttles actual rendering at the display refresh rate.

Getting VRR and async page flips to work would require first implementing airtight damage tracking.