Skip to content

Commit

Permalink
lib: Don't spam log with top-level BVH updates
Browse files Browse the repository at this point in the history
This now happens much more frequently than below, and rebuilding the
top-level BVH almost always takes no more than a few dozen milliseconds,
so no need to show that in the log.
  • Loading branch information
vkoskiv committed Jul 1, 2024
1 parent ef3ca34 commit 2f2aae4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/lib/renderer/renderer.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ void renderer_start_interactive(struct renderer *r) {

void update_toplevel_bvh(struct world *s) {
if (!s->top_level_dirty) return;
logr(info, "%s top-level BVH\n", s->topLevel ? "Updating" : "Computing");
struct bvh *new = build_top_level_bvh(s->instances);
//!//!//!//!//!//!//!//!//!//!//!//!
thread_rwlock_wrlock(&s->bvh_lock);
Expand All @@ -133,7 +132,6 @@ void update_toplevel_bvh(struct world *s) {
thread_rwlock_unlock(&s->bvh_lock);
//!//!//!//!//!//!//!//!//!//!//!//!
destroy_bvh(old);
logr(info, "BVH update done\n");
s->top_level_dirty = false;
}

Expand Down

0 comments on commit 2f2aae4

Please sign in to comment.