Embree raycaster for V-Ray

For the moment, at least on my i7, the bvh4 and bvh4.spatial methods seem to perform best, with bvh4.spatial sometime being a little faster.

About any other potential problems - I don’t know yet, we have not tested it extensively. That’s why I’m putting it here for public preview :slight_smile:

For the double precision, it will slow it down a lot, yes. Making the V-Ray raycaster a single-precision one will speed it up too.

Raycasting takes anywhere between 50% and 70% of the total calculation times in V-Ray; since Embree is about twice as fast compared to the V-Ray raycaster, the biggest improvement you can get is between 25% and 35%. Using AVX instructions could speed it up more though - we have yet to try this out.

Best regards,
Vlado