mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
vo: change vsync base to nanoseconds
There is no reason to use microseconds precision. We have precise timers all all relevant platforms.
This commit is contained in:
committed by
Dudemanguy
parent
cdfd5c280a
commit
df764bc0c3
@@ -835,7 +835,7 @@ static void handle_display_sync_frame(struct MPContext *mpctx,
|
||||
if (resample && using_spdif_passthrough(mpctx))
|
||||
return;
|
||||
|
||||
double vsync = vo_get_vsync_interval(vo) / 1e6;
|
||||
double vsync = vo_get_vsync_interval(vo) / 1e9;
|
||||
if (vsync <= 0)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user