blender/intern/cycles/kernel/bvh
Sergey Sharybin 064caae7b2 Cycles: BVH-related SSE optimization
Several ideas here:

- Optimize calculation of near_{x,y,z} in a way that does not require
  3 if() statements per update, which avoids negative effect of wrong
  branch prediction.

- Optimization of direction clamping for BVH.

- Optimization of point/direction transform.

Brings ~1.5% speedup again depending on a scene (unfortunately, this
speedup can't be sum across all previous commits because speedup of
each of the changes varies from scene to scene, but it still seems to
be nice solid speedup of few percent on Linux and bigger speedup was
reported on Windows).

Once again ,thanks Maxym for inspiration!

Still TODO: We have multiple places where we need to calculate near
x,y,z indices in BVH, for now it's only done for main BVH traversal.
Will try to move this calculation to an utility function and see if
that can be easily re-used across all the BVH flavors.
2016-10-25 14:47:34 +02:00
..
bvh_nodes.h Fix Cycles CUDA performance on CUDA 8.0. 2016-10-03 22:15:25 +02:00
bvh_shadow_all.h Cycles: Make regular bvh traversal functions close to each other 2016-09-20 16:58:39 +02:00
bvh_subsurface.h Cycles: Tweaks to support CUDA 8 toolkit 2016-08-01 15:54:29 +02:00
bvh_traversal.h Fix Cycles CUDA performance on CUDA 8.0. 2016-10-03 22:15:25 +02:00
bvh_types.h Fix Cycles CUDA performance on CUDA 8.0. 2016-10-03 22:15:25 +02:00
bvh_volume_all.h Cycles: Make regular bvh traversal functions close to each other 2016-09-20 16:58:39 +02:00
bvh_volume.h Cycles: Tweaks to support CUDA 8 toolkit 2016-08-01 15:54:29 +02:00
bvh.h Fix Cycles CUDA performance on CUDA 8.0. 2016-10-03 22:15:25 +02:00
qbvh_nodes.h Cycles: Cleanup file headers 2016-09-29 10:11:40 +02:00
qbvh_shadow_all.h Cycles: Cleanup file headers 2016-09-29 10:11:40 +02:00
qbvh_subsurface.h Cycles: Cleanup file headers 2016-09-29 10:11:40 +02:00
qbvh_traversal.h Cycles: BVH-related SSE optimization 2016-10-25 14:47:34 +02:00
qbvh_volume_all.h Cycles: Cleanup file headers 2016-09-29 10:11:40 +02:00
qbvh_volume.h Cycles: Cleanup file headers 2016-09-29 10:11:40 +02:00