Blender Git Commit Log

Git Commits -> Revision 764432a

Revision 764432a by Brecht Van Lommel (master)
April 24, 2012, 11:52 (GMT)
Cycles: BVH build time optimizations:

* BVH building was multithreaded. Not all building is multithreaded, packing
and the initial bounding/splitting is still single threaded, but recursive
splitting is, which was the main bottleneck.

* Object splitting now uses binning rather than sorting of all elements, using
code from the Embree raytracer from Intel.
http://software.intel.com/en-us/articles/embree-photo-realistic-ray-tracing-kernels/

* Other small changes to avoid allocations, pack memory more tightly, avoid
some unnecessary operations, ...

These optimizations do not work yet when Spatial Splits are enabled, for that
more work is needed. There's also other optimizations still needed, in
particular for the case of many low poly objects, the packing step and node
memory allocation.

BVH raytracing time should remain about the same, but BVH build time should be
significantly reduced, test here show speedup of about 5x to 10x on a dual core
and 5x to 25x on an 8-core machine, depending on the scene.

Commit Details:

Full Hash: 764432ac930e0e62ca2e7ddd5228a2be4867e797
SVN Revision: 45917
Parent Commit: ea4ce9e
Lines Changed: +1248, -468

4 Added Paths:

/intern/cycles/bvh/bvh_binning.cpp (+219, -0) (View)
/intern/cycles/bvh/bvh_binning.h (+86, -0) (View)
/intern/cycles/bvh/bvh_split.cpp (+293, -0) (View)
/intern/cycles/bvh/bvh_split.h (+110, -0) (View)

13 Modified Paths:

/intern/cycles/bvh/bvh.cpp (+2, -2) (Diff)
/intern/cycles/bvh/bvh_build.cpp (+283, -353) (Diff)
/intern/cycles/bvh/bvh_build.h (+35, -75) (Diff)
/intern/cycles/bvh/bvh_node.cpp (+20, -2) (Diff)
/intern/cycles/bvh/bvh_node.h (+15, -3) (Diff)
/intern/cycles/bvh/bvh_params.h (+88, -3) (Diff)
/intern/cycles/bvh/bvh_sort.cpp (+8, -8) (Diff)
/intern/cycles/bvh/bvh_sort.h (+1, -1) (Diff)
/intern/cycles/bvh/CMakeLists.txt (+4, -0) (Diff)
/intern/cycles/render/mesh.cpp (+4, -3) (Diff)
/intern/cycles/render/object.cpp (+1, -0) (Diff)
/intern/cycles/subd/subd_patch.cpp (+6, -6) (Diff)
/intern/cycles/util/util_boundbox.h (+73, -12) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021