diff options
author | Hristo Gueorguiev <prem.nirved@gmail.com> | 2017-03-08 18:26:39 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-03-09 19:09:37 +0300 |
commit | e8b5a5bf5b63ef1c8980f8da95be32cad4d2cf0e (patch) | |
tree | 4288c161ebb3eeacaf53d620e20c028e3df33e17 /intern/cycles/kernel/kernel_types.h | |
parent | 57e26627c485baab63e108821b2712d5e234ae7c (diff) |
Cycles: Speedup transparent shadows in split kernel
This commit enables record-all transparent shadows rays.
Perfromance results:
R9 290 render time (without synchronization), seconds
Before After Change
BMW 261.5 262.5 +0.4 %
Classroom 869.6 867.3 -0.3 %
Fishy Cat 657.4 639.8 -2.7 %
Koro 1909.8 692.8 -63.7 %
Pabellon Barcelona 1633.3 1238.0 -24.2 %
Pabellon Barcelona(*) 1158.1 903.8 -22.0 %
(*) without glossy connected to volume
Diffstat (limited to 'intern/cycles/kernel/kernel_types.h')
-rw-r--r-- | intern/cycles/kernel/kernel_types.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/intern/cycles/kernel/kernel_types.h b/intern/cycles/kernel/kernel_types.h index 6c18cab6406..cac710c5ff3 100644 --- a/intern/cycles/kernel/kernel_types.h +++ b/intern/cycles/kernel/kernel_types.h @@ -80,9 +80,9 @@ CCL_NAMESPACE_BEGIN # define __CMJ__ # define __VOLUME__ # define __VOLUME_SCATTER__ +# define __SHADOW_RECORD_ALL__ # ifndef __SPLIT_KERNEL__ # define __VOLUME_DECOUPLED__ -# define __SHADOW_RECORD_ALL__ # define __VOLUME_RECORD_ALL__ # endif #endif /* __KERNEL_CPU__ */ @@ -131,6 +131,7 @@ CCL_NAMESPACE_BEGIN # define __SUBSURFACE__ # define __VOLUME__ # define __VOLUME_SCATTER__ +# define __SHADOW_RECORD_ALL__ # endif /* __KERNEL_OPENCL_AMD__ */ # ifdef __KERNEL_OPENCL_INTEL_CPU__ |