New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vo_dmabuf_wayland: unmap osd surface when not needed #12237
Conversation
This causes subtitles and osd to not be visible anytime the osd isn't explicitly being updated. To test you can load any video with subtitles, or press Shift+I to see stats.lua |
Ah, indeed :/ So I guess that brings us back to what I mentioned in #12236:
|
Oh bummer, I had assumed that |
The good news is: either the osd already has a way to detect the case - or introducing it would be helpful for other backends as well (I assume). |
Yeah, this isn't really trivial unfortunately. The osd and sub visibility would need to be done in the core and then signaled in some way to the VOs that want it. Not sure what the right approach would be atm. |
Turns out the backend does already give us what we need \o/ |
Attaching a NULL buffer unmaps the surface, allowing compositors to skip blending the empty buffer. Closes mpv-player#12236
Latest push does a small naming adjustment to bring the two new variables more in line. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this!
@Dudemanguy sorry for the noise, but just out of interest: is there a point release planned in the coming months? It would be awesome if the upcoming distro releases would ship with this :) |
No firm plans right now, but given that there's been several fixes since 0.36 and that release has some pretty user visible breakage (particularly in regards to subtitles; hopefully it's all fixed now), a point release wouldn't be unwarranted. |
Attaching a NULL buffer unmaps the surface, allowing compositors to skip blending the empty buffer.
Closes #12236