Compile with transparent shadows only if needed and enabled in the current scene. Depending on the scene, it gives between 1% (scene without transparent material) and 8% (BMW benchmark) speedup.
Details
Diff Detail
- Repository
- rB Blender
Event Timeline
LGTM. Nice to have this even for the performance checks on various platforms
Nice to add more detailed information to the commit message what are the measurable benefits for users tho.
added a check for the integrator setting "cycles.use_transparent_shadows" as user may disable transparent shadows even if some transparent shaders are present in the scene. Thanks to @Mai Lavelle (maiself) for her help on finding this solution.
I've been asked to land this one, (fine, easy work) however changes have been done since the patch has been accepted, @Sergey Sharybin (sergey) do you want to take one final look?
Well, nothing changed since last time i've checked. Guess if nobody else complained we can consider the patch is good to go.
If you can land it to master please go ahead.