]> git.itanic.dy.fi Git - sdl-planets/commitdiff
main.c: Print tree rebalance events
authorTimo Kokkonen <kaapeli@itanic.dy.fi>
Sat, 30 Jul 2011 13:37:54 +0000 (16:37 +0300)
committerTimo Kokkonen <kaapeli@itanic.dy.fi>
Sat, 30 Jul 2011 13:37:54 +0000 (16:37 +0300)
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
main.c

diff --git a/main.c b/main.c
index b42f2345d5404ae0e54cc579d6ae4bc39a006f6c..7f157eeb8c0064d4f4d23fc2851a77eb9f118001 100644 (file)
--- a/main.c
+++ b/main.c
@@ -305,10 +305,11 @@ static void loop(SDL_Surface *screen, int num_of_planets, double total_mass,
 
                printf("  \rfps: %.2f, steps/s: %.2f, planets: %d"
                       ", scale %.2f, zoom %.2f, step %ld, visible %d,"
-                      " depth %ld, c:%ld",
+                      " depth %ld, re:%ld, rn:%ld",
                       last_fps, last_sps, planets, status.time_scale,
                       camera.zoom, step_count, visible_planets,
-                      planet_root->tree.depth, planet_root->tree.children);
+                       planet_root->tree.depth,
+                       quadtree_rebalance_events, quadtree_rebalanced_nodes);
                fflush(stdout);