diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-02-05 20:13:33 +0200 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-02-05 20:20:31 +0200 |
commit | e187de88a1ce7587827824ef9c16707dfb15718b (patch) | |
tree | f2511ec02ee11a528680d4ebc06365a0e48a5158 /mplayer.c | |
parent | 9118a5dd02c365e51a9f49dd34469dd7c26b89c7 (diff) | |
download | mpv-e187de88a1ce7587827824ef9c16707dfb15718b.tar.bz2 mpv-e187de88a1ce7587827824ef9c16707dfb15718b.tar.xz |
vo_vdpau: make queuing future frame flips adjustable
Add -vo vdpau suboptions "queuetime_windowed" and "queuetime_fs" to
specify the maximum number of milliseconds how far into the future a
frame flip can be queued using the VDPAU presentation queue
functionality. The intended main use of these options is to allow
disabling use of the queuing feature on systems where using it causes
choppiness in other graphics behavior (this is an NVIDIA driver issue;
the video itself isn't affected).
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -2167,13 +2167,11 @@ static int sleep_until_update(struct MPContext *mpctx, float *time_frame, //============================== SLEEP: =================================== - if (mpctx->video_out->driver->flip_page_timed) - *time_frame -= 0.05; + *time_frame -= mpctx->video_out->flip_queue_offset; // flag 256 means: libvo driver does its timing (dvb card) if (*time_frame > 0.001 && !(mpctx->sh_video->output_flags&256)) *time_frame = timing_sleep(mpctx, *time_frame); - if (mpctx->video_out->driver->flip_page_timed) - *time_frame += 0.05; + *time_frame += mpctx->video_out->flip_queue_offset; return frame_time_remaining; } |