mirror of https://github.com/mpv-player/mpv
fixed VO time usage (now including page-flip)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1963 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
414dea4111
commit
509b967bc2
|
@ -1409,7 +1409,11 @@ if(1)
|
||||||
if(blit_frame) vo2_flip(video_out,0);
|
if(blit_frame) vo2_flip(video_out,0);
|
||||||
#else
|
#else
|
||||||
video_out->check_events();
|
video_out->check_events();
|
||||||
if(blit_frame) video_out->flip_page();
|
if(blit_frame){
|
||||||
|
unsigned int t2=GetTimer();
|
||||||
|
video_out->flip_page();
|
||||||
|
t2=GetTimer()-t2;vout_time_usage+=t2*0.000001f;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
// usec_sleep(50000); // test only!
|
// usec_sleep(50000); // test only!
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue