From 9e6e9965c934f5875fa3530879c6de7db2480c4d Mon Sep 17 00:00:00 2001 From: Jacco Bikker Date: Mon, 25 Nov 2024 15:47:43 +0100 Subject: [PATCH] Proper place to measure optimization. --- tiny_bvh_speedtest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiny_bvh_speedtest.cpp b/tiny_bvh_speedtest.cpp index f5cc441..b04a93e 100644 --- a/tiny_bvh_speedtest.cpp +++ b/tiny_bvh_speedtest.cpp @@ -560,8 +560,8 @@ int main() bvh.Convert( BVH::WALD_32BYTE, BVH::VERBOSE ); t.reset(); bvh.Optimize( 1000000 ); // optimize the raw SBVH - printf( "done (%.2fs). New: %i nodes, SAH=%.2f\n", t.elapsed(), bvh.NodeCount( BVH::WALD_32BYTE ), bvh.SAHCost() ); bvh.Convert( BVH::VERBOSE, BVH::WALD_32BYTE ); + printf( "done (%.2fs). New: %i nodes, SAH=%.2f\n", t.elapsed(), bvh.NodeCount( BVH::WALD_32BYTE ), bvh.SAHCost() ); bvh.Convert( BVH::WALD_32BYTE, BVH::ALT_SOA ); printf( "- CPU, coherent, 2-way optimized, ST: " ); t.reset();