mirror of https://github.com/mpv-player/mpv
useless 'max benchmar' removed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5151 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
c294d96a27
commit
24ed01fec4
|
@ -31,13 +31,8 @@ extern int verbose; // defined in mplayer.c
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
|
|
||||||
extern int benchmark;
|
|
||||||
extern double video_time_usage;
|
extern double video_time_usage;
|
||||||
extern double vout_time_usage;
|
extern double vout_time_usage;
|
||||||
extern double max_video_time_usage;
|
|
||||||
extern double max_vout_time_usage;
|
|
||||||
extern double cur_video_time_usage;
|
|
||||||
extern double cur_vout_time_usage;
|
|
||||||
extern vo_vaa_t vo_vaa;
|
extern vo_vaa_t vo_vaa;
|
||||||
|
|
||||||
#include "postproc/postprocess.h"
|
#include "postproc/postprocess.h"
|
||||||
|
@ -200,11 +195,6 @@ if(!mpi) return 0; // error / skipped frame
|
||||||
t2=GetTimer();t=t2-t;
|
t2=GetTimer();t=t2-t;
|
||||||
tt = t*0.000001f;
|
tt = t*0.000001f;
|
||||||
video_time_usage+=tt;
|
video_time_usage+=tt;
|
||||||
if(benchmark)
|
|
||||||
{
|
|
||||||
if(tt > max_video_time_usage) max_video_time_usage=tt;
|
|
||||||
cur_video_time_usage=tt;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(drop_frame) return 0;
|
if(drop_frame) return 0;
|
||||||
|
|
||||||
|
@ -219,11 +209,6 @@ if(!(mpi->flags&(MP_IMGFLAG_DIRECT|MP_IMGFLAG_DRAW_CALLBACK))){
|
||||||
t2=GetTimer()-t2;
|
t2=GetTimer()-t2;
|
||||||
tt=t2*0.000001f;
|
tt=t2*0.000001f;
|
||||||
vout_time_usage+=tt;
|
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;
|
blit_frame=1;
|
||||||
|
|
||||||
return blit_frame;
|
return blit_frame;
|
||||||
|
|
Loading…
Reference in New Issue