From 10ab0274abdf842dc7f34e970c4a95db78290219 Mon Sep 17 00:00:00 2001 From: Johns Date: Sun, 25 Dec 2011 11:50:17 +0100 Subject: Show time used for VdpDecoderRender. --- video.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/video.c b/video.c index 6dc27d6..f5c6050 100644 --- a/video.c +++ b/video.c @@ -5819,16 +5819,24 @@ void VideoDrawRenderState(VideoHwDecoder * decoder, #ifdef USE_VDPAU if (VideoVdpauEnabled) { VdpStatus status; + uint32_t start; + uint32_t end; Debug(4, "video/vdpau: decoder render to %#010x\n", vrs->surface); + start = GetMsTicks(); status = VdpauDecoderRender(decoder->Vdpau.VideoDecoder, vrs->surface, (VdpPictureInfo const *)&vrs->info, vrs->bitstream_buffers_used, vrs->bitstream_buffers); + end = GetMsTicks(); if (status != VDP_STATUS_OK) { Error(_("video/vdpau: decoder rendering failed: %s\n"), VdpauGetErrorString(status)); } + if (start - end > 35) { + Debug(3, "video/vdpau: decoder render too slow %u ms\n", + start - end); + } return; } #endif -- cgit v1.2.3