GameLib: Evitar repetición al mostrar información de profiling ("P")
This commit is contained in:
@@ -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);
|
||||
}
|
||||
t_proc=0;
|
||||
t_col=0;
|
||||
t_over=0;
|
||||
|
||||
Reference in New Issue
Block a user