mirror of
https://github.com/mpv-player/mpv
synced 2024-12-21 22:30:22 +00:00
965ba23303
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. |
||
---|---|---|
.. | ||
events_view.swift | ||
video_layer.swift | ||
window.swift |