diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-04-18 00:07:22 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-04-18 00:07:22 +0400 |
commit | ed1a08382f2b9f9d11661d2f4c68c496c49f274a (patch) | |
tree | 493b75861ce91041475ff7de0169051e43b455a1 /intern/cycles/kernel/kernel_montecarlo.h | |
parent | f3f5e9553ecf43cbe19d40607ef27e0ea1a73085 (diff) |
Cycles: code refactoring to deduplicate the various BVH traversal variations.
Now there is a single BVH traversal code with #ifdefs for various features.
At runtime it will then select the appropriate variation to use depending if
instancing, hair or motion blur is in use.
This makes scenes without hair render a bit faster, especially after the
minimum width feature was added. It's not the most beautiful code, but we can't
use c++ templates and there were already 4 copies, adding 4 more to handle the
hair case separately would be too much.
Diffstat (limited to 'intern/cycles/kernel/kernel_montecarlo.h')
0 files changed, 0 insertions, 0 deletions