Mercurial > hg > Members > kono > Cerium
diff 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 |
line wrap: on
line diff
--- a/Renderer/Engine/viewer.cc Thu Sep 30 23:54:08 2010 +0900 +++ b/Renderer/Engine/viewer.cc Fri Oct 01 00:26:02 2010 +0900 @@ -946,9 +946,13 @@ data_update_wait->spawn(); if (profile) { - if (frames % 1000 == 999) { + if (frames % 100 == 99) { manager->show_profile(); } + if (this_time != start_time) { + printf("%f FPS\n", (((float)frames)/(this_time-start_time))*1000.0); + start_time = this_time; frames = 0; + } } }