Blender Git Commit Log
Git Commits -> Revision 03f2855
Revision 03f2855 by Sergey Sharybin (master) December 24, 2014, 21:50 (GMT) |
Cycles: Implement QBVH tree traversal This commit implements traversal for QBVH tree, which is based on the old loop code for traversal itself and Embree for node intersection. This commit also does some changes to the loop inspired by Embree: - Visibility flags are only checked for primitives. Doing visibility check for every node cost quite reasonable amount of time and in most cases those checks are true-positive. Other idea here would be to do visibility checks for leaf nodes only, but this would need to be investigated further. - For minimum hair width we extend all the nodes' bounding boxes. Again doing curve visibility check is quite costly for each of the nodes and those checks returns truth for most of the hierarchy anyway. There are number of possible optimization still, but current state is good enough in terms it makes rendering faster a little bit after recent watertight commit. Currently QBVH is only implemented for CPU with SSE2 support at least. All other devices would need to be supported later (if that'd make sense from performance point of view). The code is enabled for compilation in kernel. but blender wouldn't use it still. |
Commit Details:
Full Hash: 03f28553ff07e9d79a92834188017d93de555ccb
Parent Commit: 788fb83
Lines Changed: +1616, -33
5 Added Paths:
/intern/cycles/kernel/geom/geom_qbvh.h (+138, -0) (View)
/intern/cycles/kernel/geom/geom_qbvh_shadow.h (+378, -0) (View)
/intern/cycles/kernel/geom/geom_qbvh_subsurface.h (+300, -0) (View)
/intern/cycles/kernel/geom/geom_qbvh_traversal.h (+361, -0) (View)
/intern/cycles/kernel/geom/geom_qbvh_volume.h (+320, -0) (View)
/intern/cycles/kernel/geom/geom_qbvh_shadow.h (+378, -0) (View)
/intern/cycles/kernel/geom/geom_qbvh_subsurface.h (+300, -0) (View)
/intern/cycles/kernel/geom/geom_qbvh_traversal.h (+361, -0) (View)
/intern/cycles/kernel/geom/geom_qbvh_volume.h (+320, -0) (View)
12 Modified Paths:
/intern/cycles/bvh/bvh.cpp (+5, -2) (Diff)
/intern/cycles/kernel/CMakeLists.txt (+5, -0) (Diff)
/intern/cycles/kernel/geom/geom.h (+1, -0) (Diff)
/intern/cycles/kernel/geom/geom_bvh.h (+5, -0) (Diff)
/intern/cycles/kernel/geom/geom_bvh_shadow.h (+21, -5) (Diff)
/intern/cycles/kernel/geom/geom_bvh_subsurface.h (+23, -6) (Diff)
/intern/cycles/kernel/geom/geom_bvh_traversal.h (+29, -8) (Diff)
/intern/cycles/kernel/geom/geom_bvh_volume.h (+17, -3) (Diff)
/intern/cycles/kernel/kernel_compat_cpu.h (+0, -2) (Diff)
/intern/cycles/kernel/kernel_types.h (+5, -2) (Diff)
/intern/cycles/render/mesh.cpp (+7, -1) (Diff)
/intern/cycles/render/scene.h (+1, -4) (Diff)
/intern/cycles/kernel/CMakeLists.txt (+5, -0) (Diff)
/intern/cycles/kernel/geom/geom.h (+1, -0) (Diff)
/intern/cycles/kernel/geom/geom_bvh.h (+5, -0) (Diff)
/intern/cycles/kernel/geom/geom_bvh_shadow.h (+21, -5) (Diff)
/intern/cycles/kernel/geom/geom_bvh_subsurface.h (+23, -6) (Diff)
/intern/cycles/kernel/geom/geom_bvh_traversal.h (+29, -8) (Diff)
/intern/cycles/kernel/geom/geom_bvh_volume.h (+17, -3) (Diff)
/intern/cycles/kernel/kernel_compat_cpu.h (+0, -2) (Diff)
/intern/cycles/kernel/kernel_types.h (+5, -2) (Diff)
/intern/cycles/render/mesh.cpp (+7, -1) (Diff)
/intern/cycles/render/scene.h (+1, -4) (Diff)