comparison Renderer/Engine/viewer.cc @ 983:ff74988bbb2a

minor fix
author root@henri.cr.ie.u-ryukyu.ac.jp
date Fri, 01 Oct 2010 00:37:06 +0900
parents b29547a5b85b
children df5185513c2d
comparison
equal deleted inserted replaced
982:b29547a5b85b 983:ff74988bbb2a
944 944
945 } 945 }
946 946
947 data_update_wait->spawn(); 947 data_update_wait->spawn();
948 if (profile) { 948 if (profile) {
949 if (frames % 100 == 99) { 949 if (frames % 50 == 49) {
950 manager->show_profile(); 950 this_time = get_ticks();
951 manager->show_profile();
952 if (this_time != start_time) {
953 printf("\n%f FPS\n", (((float)frames)/(this_time-start_time))*1000.0);
954 start_time = this_time; frames = 0;
955 }
951 } 956 }
952 if (this_time != start_time) { 957 }
953 printf("%f FPS\n", (((float)frames)/(this_time-start_time))*1000.0);
954 start_time = this_time; frames = 0;
955 }
956 }
957
958 } 958 }
959 959
960 void 960 void
961 Viewer::run_finish() 961 Viewer::run_finish()
962 { 962 {