summaryrefslogtreecommitdiffstats
path: root/video/out/vo.c
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2023-11-10 22:37:52 +0100
committerDudemanguy <random342@airmail.cc>2023-11-11 20:44:01 +0000
commit5e5a32534ad9aa340f7cf76b2d54461e8f7d1098 (patch)
treeeaf98373dc65ad912a9d3272bcf8407cb4672e0a /video/out/vo.c
parent332619042f00689b9609a35a16756beadd617fcf (diff)
downloadmpv-5e5a32534ad9aa340f7cf76b2d54461e8f7d1098.tar.bz2
mpv-5e5a32534ad9aa340f7cf76b2d54461e8f7d1098.tar.xz
vo: add frame vsync and vsync duration
Relative to frame PTS timeline as oposed to display vblank. Those values are relative to unadjusted video timeline. They will be used by gpu-next where it expect virtual frame vsync, not display vblank time.
Diffstat (limited to 'video/out/vo.c')
-rw-r--r--video/out/vo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/vo.c b/video/out/vo.c
index 2296d25448..3e75cc57b8 100644
--- a/video/out/vo.c
+++ b/video/out/vo.c
@@ -898,6 +898,7 @@ static bool render_frame(struct vo *vo)
in->current_frame->repeat = true;
if (frame->display_synced) {
in->current_frame->vsync_offset += in->current_frame->vsync_interval;
+ in->current_frame->ideal_frame_vsync += in->current_frame->ideal_frame_vsync_duration;
in->dropped_frame |= in->current_frame->num_vsyncs < 1;
}
if (in->current_frame->num_vsyncs > 0)