Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[MANTA] r1532 - trunk/Model/Groups


Chronological Thread 
  • From: abe@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [MANTA] r1532 - trunk/Model/Groups
  • Date: Sun, 22 Jul 2007 02:38:29 -0600 (MDT)

Author: abe
Date: Sun Jul 22 02:38:28 2007
New Revision: 1532

Modified:
   trunk/Model/Groups/DynBVH.cc
Log:

Placed approximate SAH build in a disabled #ifdef, results in 30% performance 
hit on larger CAD models.

M    Model/Groups/DynBVH.cc


Modified: trunk/Model/Groups/DynBVH.cc
==============================================================================
--- trunk/Model/Groups/DynBVH.cc        (original)
+++ trunk/Model/Groups/DynBVH.cc        Sun Jul 22 02:38:28 2007
@@ -493,11 +493,16 @@
     int bestAxis = -1;
     int split = -1;
     int num_objects = objectEnd - objectBegin;
+
+#if USE_APPROXIMATE_BUILD // 30% slower for certain datasets.
     if (num_objects < 32) {
       split = partitionSAH(context, objectBegin,objectEnd,bestAxis);
     } else {
       split = partitionApproxSAH(context, objectBegin,objectEnd,bestAxis);
     }
+#else
+    split = partitionSAH(context, objectBegin,objectEnd,bestAxis);    
+#endif
 
     if (bestAxis == -1)
     {




  • [MANTA] r1532 - trunk/Model/Groups, abe, 07/22/2007

Archive powered by MHonArc 2.6.16.

Top of page