diff options
author | LongChair <longchair@hotmail.com> | 2018-02-02 08:25:43 +0100 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2018-02-07 22:40:30 -0800 |
commit | b01623e0d233f6f326523aee6b82ed06346b229a (patch) | |
tree | 9384f8302f0457f39d2eed31bf6561a19b4ad4f9 /player/core.h | |
parent | 9282a34fbf718618b4fb2a19b9043ec6f104eab3 (diff) | |
download | mpv-b01623e0d233f6f326523aee6b82ed06346b229a.tar.bz2 mpv-b01623e0d233f6f326523aee6b82ed06346b229a.tar.xz |
drmprime interop : Add frames triple buffering
Currently using the drmprime interop with external mpv intgration can lead
to rendering issues because the current frame is being released too early.
Typically using this with Qt results in one frame shift because Qt
will do waitforvsync and swap, rather than swap and waitforvsync.
This leads to tearing as the frambuffer is released while being
displayed on screen.
In order to avoid releasing the framebuffer that is displayed, We keep
the framebuffer alive for one more frame with triple buffering to make
sure that whatever rendering process is used, the framebuffer will not
be released when it's still on screen.
This was tested on RockChip Rock64
Diffstat (limited to 'player/core.h')
0 files changed, 0 insertions, 0 deletions