mirror of
https://github.com/mpv-player/mpv
synced 2025-02-21 07:16:56 +00: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:
parent
08c12a28b3
commit
5b4a119267
@ -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(¶ms),
|
||||
.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(¶ms),
|
||||
.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
|
||||
|
Loading…
Reference in New Issue
Block a user