Skip to content

Commit

Permalink
Speedtest uses three views for better accuracy.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbikker committed Jan 3, 2025
1 parent b2da3a2 commit 250c9ee
Show file tree
Hide file tree
Showing 2 changed files with 151 additions and 150 deletions.
7 changes: 2 additions & 5 deletions tiny_bvh.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ THE SOFTWARE.

// Binned BVH building: bin count.
#define BVHBINS 8
#define HQBVHBINS 32
#define HQBVHBINS 16
#define AVXBINS 8 // must stay at 8.

// SAH BVH building: Heuristic parameters
Expand Down Expand Up @@ -1809,11 +1809,8 @@ int32_t BVH::Intersect( Ray& ray ) const
cost += C_TRAV;
if (node->isLeaf())
{
for (uint32_t i = 0; i < node->triCount; i++)
{
for (uint32_t i = 0; i < node->triCount; i++, cost += C_INT)
IntersectTri( ray, verts, triIdx[node->leftFirst + i] );
cost += C_INT;
}
if (stackPtr == 0) break; else node = stack[--stackPtr];
continue;
}
Expand Down
Loading

0 comments on commit 250c9ee

Please sign in to comment.