Blender Git Loki
Git Commits -> Revision 828abaf
Revision 828abaf by Sergey Sharybin (master) April 20, 2015, 12:29 (GMT) |
Cycles: Split BVH nodes storage into inner and leaf nodes This way we can get rid of inefficient memory usage caused by BVH boundbox part being unused by leaf nodes but still being allocated for them. Doing such split allows to save 6 of float4 values for QBVH per leaf node and 3 of float4 values for regular BVH per leaf node. This translates into following memory save using 01.01.01.G rendered without hair: Device memory size Device memory peak Global memory peak Before the patch: 4957 5051 7668 With the patch: 4467 4562 7332 The measurements are done against current master. Still need to run speed tests and it's hard to predict if it's faster or not: on the one hand leaf nodes are now much more coherent in cache, on the other hand they're not so much coherent with regular nodes anymore. Reviewers: brecht, juicyfruit Subscribers: venomgfx, eyecandy Differential Revision: https://developer.blender.org/D1236 |
Commit Details:
Full Hash: 828abaf11c3cd5177ae37e5943492a9ec23ce399
Parent Commit: cd44449
Lines Changed: +151, -95
15 Modified Paths:
/intern/cycles/bvh/bvh.cpp (+127, -81) (Diff)
/intern/cycles/bvh/bvh.h (+6, -5) (Diff)
/intern/cycles/kernel/geom/geom.h (+2, -0) (Diff)
/intern/cycles/kernel/geom/geom_bvh_shadow.h (+1, -1) (Diff)
/intern/cycles/kernel/geom/geom_bvh_subsurface.h (+1, -1) (Diff)
/intern/cycles/kernel/geom/geom_bvh_traversal.h (+1, -1) (Diff)
/intern/cycles/kernel/geom/geom_bvh_volume.h (+1, -1) (Diff)
/intern/cycles/kernel/geom/geom_qbvh_shadow.h (+1, -1) (Diff)
/intern/cycles/kernel/geom/geom_qbvh_subsurface.h (+1, -1) (Diff)
/intern/cycles/kernel/geom/geom_qbvh_traversal.h (+1, -1) (Diff)
/intern/cycles/kernel/geom/geom_qbvh_volume.h (+1, -1) (Diff)
/intern/cycles/kernel/kernel_textures.h (+1, -0) (Diff)
/intern/cycles/kernel/svm/svm_image.h (+1, -1) (Diff)
/intern/cycles/render/mesh.cpp (+5, -0) (Diff)
/intern/cycles/render/scene.h (+1, -0) (Diff)
/intern/cycles/bvh/bvh.h (+6, -5) (Diff)
/intern/cycles/kernel/geom/geom.h (+2, -0) (Diff)
/intern/cycles/kernel/geom/geom_bvh_shadow.h (+1, -1) (Diff)
/intern/cycles/kernel/geom/geom_bvh_subsurface.h (+1, -1) (Diff)
/intern/cycles/kernel/geom/geom_bvh_traversal.h (+1, -1) (Diff)
/intern/cycles/kernel/geom/geom_bvh_volume.h (+1, -1) (Diff)
/intern/cycles/kernel/geom/geom_qbvh_shadow.h (+1, -1) (Diff)
/intern/cycles/kernel/geom/geom_qbvh_subsurface.h (+1, -1) (Diff)
/intern/cycles/kernel/geom/geom_qbvh_traversal.h (+1, -1) (Diff)
/intern/cycles/kernel/geom/geom_qbvh_volume.h (+1, -1) (Diff)
/intern/cycles/kernel/kernel_textures.h (+1, -0) (Diff)
/intern/cycles/kernel/svm/svm_image.h (+1, -1) (Diff)
/intern/cycles/render/mesh.cpp (+5, -0) (Diff)
/intern/cycles/render/scene.h (+1, -0) (Diff)