Skip to content

Commit

Permalink
Performance improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Red-Rapious committed Sep 10, 2023
1 parent 1d808f8 commit 1a89ae4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified app/generated_images/22_refactor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/bvh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl BVHNode {
}
}
} else {
objects.sort_by(|a, b| {
objects[start..end].sort_by(|a, b| {
BVHNode::box_compare(&a, &b, axis)
});

Expand Down

0 comments on commit 1a89ae4

Please sign in to comment.