- Change the ordering of the fields
- Add the counter of the simulation steps
- Flush the stdout buffer out after each print.
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
- printf(" \rFrames/s: %.2f, planets: %d"
- ", scale %.2f, zoom %.2f, steps/s: %.2f, %ld",
- last_fps, planets, time_scale,
- camera.zoom, last_sps, step_count);
+ printf(" \rFrames/s: %.2f, steps/s: %.2f, planets: %d"
+ ", scale %.2f, zoom %.2f, step %d",
+ last_fps, last_sps, planets, time_scale,
+ camera.zoom, step_count);
+ fflush(stdout);