changeset 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
files Renderer/Engine/spe/Load_Texture.cc Renderer/Engine/viewer.cc
diffstat 2 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/Renderer/Engine/spe/Load_Texture.cc	Fri Oct 01 00:26:02 2010 +0900
+++ b/Renderer/Engine/spe/Load_Texture.cc	Fri Oct 01 00:37:06 2010 +0900
@@ -21,7 +21,7 @@
     MemList *ml = smanager->createMemList(sizeof(uint32) * TEXTURE_BLOCK_SIZE, MAX_TILE);
     smanager->global_set(GLOBAL_TILE_LIST, (void *)ml);
 
-    smanager->printf("%d\n",GLOBAL_TILE_LIST);
+    // smanager->printf("%d\n",GLOBAL_TILE_LIST);
 
     return 0;
 }
--- a/Renderer/Engine/viewer.cc	Fri Oct 01 00:26:02 2010 +0900
+++ b/Renderer/Engine/viewer.cc	Fri Oct 01 00:37:06 2010 +0900
@@ -946,15 +946,15 @@
 
     data_update_wait->spawn();  
     if (profile) {
-	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;
+	if (frames % 50 == 49) {
+           this_time = get_ticks();
+	   manager->show_profile();
+           if (this_time != start_time) {
+              printf("\n%f FPS\n", (((float)frames)/(this_time-start_time))*1000.0);
+              start_time = this_time; frames = 0;
+           }
         }
     }
-
 }
 
 void