Blender Git Commit Log

Git Commits -> Revision 5aaa643

Revision 5aaa643 by Lukas Stockner (master)
March 27, 2017, 03:36 (GMT)
Cycles: Optimize shaders earlier to skip unneccessary attributes for noninteractive rendering

Before, Cycles would first sync the shader exactly as shown in the UI, then determine and sync the used attributes and later optimize the shader.
Therefore, even completely unconnected nodes would cause unneccessary attributes to be synced.

The reason for this is to avoid frequent resyncs when editing shaders interactively, but it can still be avoided for noninteractive renders - which is what this commit does.

Reviewed by: sergey

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

Commit Details:

Full Hash: 5aaa643947929cf807c349b2b5fe33d4dc669c3d
Parent Commit: 086320a
Lines Changed: +39, -9

5 Modified Paths:

/intern/cycles/blender/blender_shader.cpp (+16, -0) (Diff)
/intern/cycles/render/graph.cpp (+21, -4) (Diff)
/intern/cycles/render/graph.h (+2, -1) (Diff)
/intern/cycles/render/osl.cpp (+0, -2) (Diff)
/intern/cycles/render/svm.cpp (+0, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021