Prevent BVH building

is it possible to use cycles without building a BVH or any other type of acceleration structure? I’m trying to prove some theoretical analysis on ray traversal performance.

Found a line (116) in cycles/bvh/bvh_params.h

/* fixed parameters */

Is max_depth related to bvh tree branch limit? I could then set to 0 or 1 and have quasi linear loop over all objects?

Also a there is a requested_layout when building the bvh and one called ‘none’. Maybe I can force this?

Thank you for any insight!

PS. was looking at cycles X source code found here: bvh_params.h · rB

You could try setting the MAX_DEPTH to some low value, and you may need to increase max_triangle_leaf_size also.

To choose the BVH layout, go in the preferences enable Developer Extras and then under Experimental enable Cycles Debug. That will give you a Debug panel where you can pick the BVH2 layout rather than Embree.

1 Like