Blender Git Commit Log
Git Commits -> Revision e439892
Revision e439892 by Lukas Stockner (blender-v2.78b-release, blender-v2.78c-release, fracture_modifier, fracture_modifier-master, temp-fracture-modifier-2.8) January 20, 2017, 10:24 (GMT) |
Cycles: Don't run full shader evaluation for constant emission lamps Most of the time, Lamps in Cycles are just a constant emission closure, no texturing etc. Therefore, running a full shader evaluation is wasteful. To avoid that, Cycles now detects these constant emission shaders and stores their value in the lamp data along with a flag in the shader. Then, at runtime, if this flag is set, the lamp code just uses this value and only runs the full shader evaluation if it is neccessary. In scenes with a lot of lamps and with "Sample all direct/indirect" enabled, this saves up to 20% of rendering time in my tests. Reviewers: #cycles Differential Revision: https://developer.blender.org/D2193 |
Commit Details:
Full Hash: e439892b143534cc8bce5b6d3df0c3b98f0fd226
Parent Commit: c9dd9fc
Committed By: Sergey Sharybin
Lines Changed: +41, -6