forked from bartvdbraak/blender
ae7d84dbc1
This more a workaround for CUDA optimizer which can't optimize clamp(x, 0, 1) into a single instruction and uses 4 instructions instead. Original patch by @lockal with own modification: Don't make changes outside of the kernel. They don't make any difference anyway and term saturate() has a bit different meaning outside of kernel. This gives around 2% of speedup in Barcelona file, but in more complex shader setups with lots of math nodes with clamping speedup could be much nicer. Subscribers: dingto Projects: #cycles Differential Revision: https://developer.blender.org/D1224 |
||
---|---|---|
.. | ||
bsdf_ashikhmin_shirley.h | ||
bsdf_ashikhmin_velvet.h | ||
bsdf_diffuse_ramp.h | ||
bsdf_diffuse.h | ||
bsdf_hair.h | ||
bsdf_microfacet.h | ||
bsdf_oren_nayar.h | ||
bsdf_phong_ramp.h | ||
bsdf_reflection.h | ||
bsdf_refraction.h | ||
bsdf_toon.h | ||
bsdf_transparent.h | ||
bsdf_util.h | ||
bsdf.h | ||
bssrdf.h | ||
emissive.h | ||
volume.h |