GameLib: Evitar repetición al mostrar información de profiling ("P")

This commit is contained in:
2014-08-28 01:57:09 +02:00
committed by Valeriano A.R
parent 1576951fc8
commit e175b324db

View File

@@ -384,17 +384,15 @@ void GameLib_DrawLoop(void *data, float f){
fdraw_count++;
if(Input_GetKey(InputKey_DumpProfiling)==InputKey_Pressed){
if(Input_GetKey(InputKey_DumpProfiling)==InputKey_Pressed &&
fproc_count>0 && fdraw_count>0)
{
printf("Profiling:::::::::\n");
if(fproc_count>0){
printf("t_proc.....:%6lld\n",t_proc/fproc_count);
printf("t_col......:%6lld\n",t_col/fproc_count);
printf("t_over.....:%6lld\n",t_over/fproc_count);
printf("t_postproc.:%6lld\n",t_postproc/fproc_count);
}
if(fdraw_count>0){
printf("t_draw.....:%6lld\n",t_draw/fdraw_count);
}
printf("t_proc.....:%6lld\n",t_proc/fproc_count);
printf("t_col......:%6lld\n",t_col/fproc_count);
printf("t_over.....:%6lld\n",t_over/fproc_count);
printf("t_postproc.:%6lld\n",t_postproc/fproc_count);
printf("t_draw.....:%6lld\n",t_draw/fdraw_count);
t_proc=0;
t_col=0;
t_over=0;