0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

vo_gpu_next: disable libplacebo drift_compensation

In commit de6d57f0 libplacebo enabled drift compensation by default.

mpv already tracks error and adjust the speed by itself.

This commit fixes judder visible when slowing video a lot, ex. playing
back at 10% speed.

Set ideal vsync duration also when dropping frames, libplacebo estimate
currently own values anyway, will be useful later...

See: de6d57f021
This commit is contained in:
Kacper Michajłow 2023-11-12 12:06:31 +01:00 committed by Dudemanguy
parent 08c12a28b3
commit 5b4a119267

View File

@ -934,6 +934,10 @@ static void draw_frame(struct vo *vo, struct vo_frame *frame)
pl_queue_update(p->queue, NULL, pl_queue_params(
.pts = frame->current->pts + pts_offset,
.radius = pl_frame_mix_radius(&params),
.vsync_duration = frame->ideal_frame_vsync_duration,
#if PL_API_VER >= 340
.drift_compensation = 0,
#endif
));
}
return;
@ -960,6 +964,9 @@ static void draw_frame(struct vo *vo, struct vo_frame *frame)
.radius = pl_frame_mix_radius(&params),
.vsync_duration = frame->ideal_frame_vsync_duration,
.interpolation_threshold = opts->interpolation_threshold,
#if PL_API_VER >= 340
.drift_compensation = 0,
#endif
);
// mpv likes to generate sporadically jumping PTS shortly after