Blender Git Commit Log
Git Commits -> Revision 9311a5b
Revision 9311a5b by Sergey Sharybin (master) November 24, 2014, 13:50 (GMT) |
Cycles: Speedup BVH build for certain compilers The issue was noticed with gcc-4.7 (used by the release build environment) which didn't generate optimal enough code for BVH references swap. Seems it looked up for the assign operator for each of the reference structure members even though nothing special was required for assignment. Forcing compiler to use simple memory copy gives speedup of like 2-3 times. The issue doesn't happen with OSX's clang and new gcc-4.9, but since we're gonna to stick to gcc-4.7 for official releases for quite some time still it's nice to have performance issues resolved for all the compilers. Didn't put the code into #ifdef so if in the future some issues appears with alignment or assignment which need to happen as an operator we notice this earlier. |
Commit Details:
Full Hash: 9311a5be04b66411442e4e2b99b3211a06d7e326
Parent Commit: c114919
Lines Changed: +5, -0
1 Modified Path:
/intern/cycles/bvh/bvh_params.h (+5, -0) (Diff)