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);
vector_scale(&p->speed, time, &tmp);
vector_add(&p->pos, &tmp, &p->pos);
+ vector_scale(&p->speed, pow(0.99, time), &p->speed);
tree_parent = quadtree_del(&p->tree, planet_spatial_compare);
quadtree_add(tree_parent, &p->tree, planet_spatial_compare);