Skip to content

Commit

Permalink
Add bench
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson committed Oct 7, 2023
1 parent 79467d2 commit 061db3e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions benchmark/run-benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,18 @@ function runSuiteWithOptions( name, options ) {
);
bench( 'IntersectsGeometry w/o BVH', () => bvh.intersectsGeometry( intersectGeometry, intersectMatrix ) );

bench( 'BVHCast', () => bvh.bvhcast( intersectBvh, intersectMatrix, {

intersectsTriangles( tri1, tri2 ) {

tri1.update();
tri2.update();
tri1.intersectsTriangle( tri2 );

}

} ) );

} );

suite( `${ name } BVH Misc`, () => {
Expand Down

0 comments on commit 061db3e

Please sign in to comment.