Blender Git Commit Log
Git Commits -> Revision e0bbdd9
Revision e0bbdd9 by Sergey Sharybin (cycles_memory_experiments, gooseberry, gooseberry_farm, temp_motionpaths) April 14, 2015, 11:19 (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: e0bbdd97042d1de75c5ce54b36a5789e6a8526fb
Parent Commit: ac6038e
Lines Changed: +149, -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 (+3, -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 (+3, -0) (Diff)
/intern/cycles/render/scene.h (+1, -0) (Diff)