Page MenuHome

Cycles: free mesh BVH after packing the scene BVH

Authored by Sergey Sharybin (sergey) on Apr 2 2015, 6:11 PM.



The idea is to avoid having original BVH and BVH packed into scene BVH and hence
reduce memory footprint.

This change doesn't give any measurable differences on it's own, but together
with D1215 and D1217 it gives quite nice results.

Diff Detail

rB Blender

Event Timeline

Sergey Sharybin (sergey) retitled this revision from to Cycles: free mesh BVH after packing the scene BVH.
Sergey Sharybin (sergey) updated this object.

Decided to avoid passing is_background all around and made it more explicit
for the render API to switch between whether stuff could be freed after the
device update or not. This seems to be better approach that forcing memory
free in cases which are safe for blender.

Still not sure why cases when scene BVH works correct after switching render
layers, this is to be investigated before commit.

This revision was automatically updated to reflect the committed changes.