diff options
author | 2002-02-24 17:10:06 +0000 | |
---|---|---|
committer | 2002-02-24 17:10:06 +0000 | |
commit | 93c371d589b200d8d9126d286847bdb1df556c54 (patch) | |
tree | ba0c1c53dd3cc91e5863fe5faf92449e34d3b9fd /dec_video.c | |
parent | a4119f6b1568523dc3932478518857b24d84ae17 (diff) |
exclude benchmark stuff execution from normal playback
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4845 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'dec_video.c')
-rw-r--r-- | dec_video.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/dec_video.c b/dec_video.c index 5c26dcffc4..17ff9ac163 100644 --- a/dec_video.c +++ b/dec_video.c @@ -38,6 +38,7 @@ extern int verbose; // defined in mplayer.c // =================================================================== +extern int benchmark; extern double video_time_usage; extern double vout_time_usage; extern double max_video_time_usage; @@ -1219,8 +1220,11 @@ else if(gCpuCaps.hasMMX){ t2=GetTimer();t=t2-t; tt = t*0.000001f; video_time_usage+=tt; -if(tt > max_video_time_usage) max_video_time_usage=tt; -cur_video_time_usage=tt; +if(benchmark) +{ + if(tt > max_video_time_usage) max_video_time_usage=tt; + cur_video_time_usage=tt; +} if(painted) return 1; switch(blit_frame){ case 3: @@ -1280,8 +1284,11 @@ case 2: t2=GetTimer()-t2; tt=t2*0.000001f; vout_time_usage+=tt; - if(tt > max_vout_time_usage) max_vout_time_usage = tt; - cur_vout_time_usage=tt; + if(benchmark) + { + if(tt > max_vout_time_usage) max_vout_time_usage = tt; + cur_vout_time_usage=tt; + } blit_frame=1; break; } |