diff options
author | der richter <der.richter@gmx.de> | 2024-04-06 23:31:05 +0200 |
---|---|---|
committer | der richter <der.richter@gmx.de> | 2024-04-10 19:14:20 +0200 |
commit | ee6794225d2be8cb56afb9ba441a89d5e1319b87 (patch) | |
tree | 5e8e61c5e828a87987523422517f6c1e98c99ab5 /video/out/vulkan | |
parent | 6df07ce90c894d561c179090675f30d811f9629b (diff) | |
download | mpv-ee6794225d2be8cb56afb9ba441a89d5e1319b87.tar.bz2 mpv-ee6794225d2be8cb56afb9ba441a89d5e1319b87.tar.xz |
mac/vulkan: add support for frame timing via presentation feedback
Diffstat (limited to 'video/out/vulkan')
-rw-r--r-- | video/out/vulkan/context_mac.m | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/video/out/vulkan/context_mac.m b/video/out/vulkan/context_mac.m index be5c077155..bedd0d4f9e 100644 --- a/video/out/vulkan/context_mac.m +++ b/video/out/vulkan/context_mac.m @@ -44,6 +44,12 @@ static void mac_vk_swap_buffers(struct ra_ctx *ctx) [p->vo_mac swapBuffer]; } +static void mac_vk_get_vsync(struct ra_ctx *ctx, struct vo_vsync_info *info) +{ + struct priv *p = ctx->priv; + [p->vo_mac fillVsyncWithInfo:info]; +} + static bool mac_vk_init(struct ra_ctx *ctx) { struct priv *p = ctx->priv = talloc_zero(ctx, struct priv); @@ -66,6 +72,7 @@ static bool mac_vk_init(struct ra_ctx *ctx) struct ra_vk_ctx_params params = { .swap_buffers = mac_vk_swap_buffers, + .get_vsync = mac_vk_get_vsync, }; VkInstance inst = vk->vkinst->instance; |