# HG changeset patch # User root@henri.cr.ie.u-ryukyu.ac.jp # Date 1285861026 -32400 # Node ID ff74988bbb2ab52ce8ece2ea8689fe060555fb3f # Parent b29547a5b85bb2e07c3b414a7fe5b09b095fd72d minor fix diff -r b29547a5b85b -r ff74988bbb2a Renderer/Engine/spe/Load_Texture.cc --- 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; } diff -r b29547a5b85b -r ff74988bbb2a Renderer/Engine/viewer.cc --- 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