diff options
author | Akemi <der.richter@gmx.de> | 2018-03-21 21:09:05 +0100 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2018-03-25 16:24:23 -0700 |
commit | 965ba23303d980c239e2b0191488766cfa7b0f75 (patch) | |
tree | 752b6823e0668bf8eb4fbf4ef6aee10c2fe47591 /stream | |
parent | 9975835bdeec3f2b04b136ef40c70b02487bb0e6 (diff) | |
download | mpv-965ba23303d980c239e2b0191488766cfa7b0f75.tar.bz2 mpv-965ba23303d980c239e2b0191488766cfa7b0f75.tar.xz |
cocoa-cb: render on a dedicated dispatch queue
we rendered on the displaylink thread which wasn't the best idea. if
rendering took too long or was blocking it also blocked the displaylink
callback. when that happened new vsyncs were reported delayed or not at
all. consequently the mpv_render_context_report_swap function wasn't
called consistently and that could cause bad video playback. so the
rendering is moved to a dedicated dispatch queue. furthermore the update
callback starts a layer update directly instead of the displaylink
callback, making the rendering a bit more consistent.
Diffstat (limited to 'stream')
0 files changed, 0 insertions, 0 deletions