diff options
author | Sergey Sharybin <sergey@blender.org> | 2021-10-08 17:38:40 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2021-10-11 15:01:42 +0300 |
commit | eca2a419648a9e4288f56b921dabafed0cb97526 (patch) | |
tree | 070a7b6a07c4d5b7c9ef46211e846761043d05c6 /intern/cycles/util | |
parent | a82c9e1e405c84b9ab8b5c1f31d7e135ab41c101 (diff) |
Cycles: Improve volume stack size calculation
Only count volume objects after shader optimization.
Allows to discard objects which don't have effective volume
BSDF connected to the shader output (i.e. constant folded,
or non-volume BSDF used by mistake).
Solves memory regression reported in T92014.
There is still possibility to improve memory even further
for cases when there are a lot of non-intersecting volume
objects, but that requires a deeper refactor of update
process. Will happen as a followup development.
Differential Revision: https://developer.blender.org/D12797
Diffstat (limited to 'intern/cycles/util')
0 files changed, 0 insertions, 0 deletions