]> git.itanic.dy.fi Git - sdl-planets/blobdiff - main.c
main.c: Print tree statistics
[sdl-planets] / main.c
diff --git a/main.c b/main.c
index 88efd2179e76dd40a5f9a62d3ff482b65a2537bf..8be3330f3128802b82ff307062f516478ad39196 100644 (file)
--- a/main.c
+++ b/main.c
@@ -297,10 +297,12 @@ static void loop(SDL_Surface *screen, int num_of_planets, double total_mass,
                        last_fps_time = ticks;
                }
 
-               printf("  \rFrames/s: %.2f, steps/s: %.2f, planets: %d"
-                      ", scale %.2f, zoom %.2f, step %ld, visible %d",
+               printf("  \rfps: %.2f, steps/s: %.2f, planets: %d"
+                      ", scale %.2f, zoom %.2f, step %ld, visible %d,"
+                      " depth %ld, c:%ld",
                       last_fps, last_sps, planets, status.time_scale,
-                      camera.zoom, step_count, visible_planets);
+                      camera.zoom, step_count, visible_planets,
+                      planet_root->tree.depth, planet_root->tree.children);
                fflush(stdout);