comparison Renderer/Engine/viewer.cc @ 982:b29547a5b85b

avoid WAIT in virtual console
author root@henri.cr.ie.u-ryukyu.ac.jp
date Fri, 01 Oct 2010 00:26:02 +0900
parents a193a851b5e3
children ff74988bbb2a
comparison
equal deleted inserted replaced
981:a193a851b5e3 982:b29547a5b85b
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 % 1000 == 999) { 949 if (frames % 100 == 99) {
950 manager->show_profile(); 950 manager->show_profile();
951 }
952 if (this_time != start_time) {
953 printf("%f FPS\n", (((float)frames)/(this_time-start_time))*1000.0);
954 start_time = this_time; frames = 0;
951 } 955 }
952 } 956 }
953 957
954 } 958 }
955 959