Blender Git Commit Log

Git Commits -> Revision cd72396

Revision cd72396 by Thomas Dinges (master)
January 21, 2015, 19:16 (GMT)
Cycles: Optimization for black world backgrounds

* If a Background node is set to a black color or zero strength,
it now gets removed from the shader graph.

* In case the graph is empty (no background node), the kernel will skip
evaluating it and save some rendertime. This can help quite a bit in scenes,
where the majority of the image consists of a black background.

Example: http://www.pasteall.org/pic/show.php?id=82650
In this case the render is ~16% faster.

Differential Revision: https://developer.blender.org/D972

Commit Details:

Full Hash: cd723967970e3330d5461eaf8a062d6321de5d4f
Parent Commit: 7165db5
Lines Changed: +43, -11

4 Modified Paths:

/intern/cycles/render/background.cpp (+17, -10) (Diff)
/intern/cycles/render/graph.cpp (+22, -0) (Diff)
/intern/cycles/render/graph.h (+2, -1) (Diff)
/intern/cycles/render/nodes.cpp (+2, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021