comparison Renderer/Engine/viewer.cc @ 998:ad5232ad4952

add fb_test, minor fix
author yutaka@localhost.localdomain
date Fri, 15 Oct 2010 02:13:55 +0900
parents 33616b2789de
children 67ff44a08090
comparison
equal deleted inserted replaced
997:625be5ca53ab 998:ad5232ad4952
902 } 902 }
903 903
904 904
905 if (profile) { 905 if (profile) {
906 if (frames % 50 == 49) { 906 if (frames % 50 == 49) {
907 manager->show_profile(); 907 manager->show_profile();
908 this_time = get_ticks(); 908 this_time = get_ticks();
909 if (this_time != start_time) { 909 if (this_time != start_time) {
910 printf("\n%f FPS\n", ((((float)frames)*1000.0)/(this_time-start_time))); 910 printf("\n%f FPS\n", ((((float)frames)*1000.0)/(this_time-start_time)));
911 start_time = this_time; frames = 0; 911 start_time = this_time; frames = 0;
912 } 912 }