aboutsummaryrefslogtreecommitdiffhomepage
path: root/video/out/gpu/context.c
diff options
context:
space:
mode:
authorGravatar Niklas Haas <git@haasn.xyz>2018-11-12 13:09:29 +0100
committerGravatar Jan Ekström <jeebjp@gmail.com>2018-11-19 00:23:15 +0200
commitb8bb5329a578a0335d3470293108c98792633831 (patch)
tree5ca17346bba6aebfe6bfac6509d68497df2fa8cf /video/out/gpu/context.c
parent34df6bd82fe4a32b1a4b1d878297976a999aabe4 (diff)
vulkan: slightly improve vsync jitter measurements
By design, some vulkan implementations block until vsync during vkAcquireNextImageKHR. Since mpv only considers the time that `swap_buffers` spent blocking as constituting part of the vsync, we can help it out a bit by pre-emptively calling this function here in order to improve the accuracy of vsync jitter measurements on vulkan. (If it fails, we just ignore the error and have the user call it a second time later - maybe it will work then) On my system this drops vsync-jitter from ~0.030 to ~0.007, an accuracy of +/- 100μs. (Which *might* have something to do with the fact that this is the polling interval for command polling)
Diffstat (limited to 'video/out/gpu/context.c')
0 files changed, 0 insertions, 0 deletions