3 ms·
> There's an Intel library called Embree which is very cache friendly. It's used by v-Ray, the raytracer that I use. https://www.embree.org/ https://www.embree.
by CyberDildonics 6y ago
> There's an Intel library called Embree which is very cache friendly. It's used by v-Ray, the raytracer that I use. https://www.embree.org/ https://www.embree.org/
I started using it when it was released and I've looked through the source code. It does some operations in chunks of 4, 8 or 16 to try to utilize AVX registers, especially in the version written in ISPC. It isn't what I would call cache friendly, it still hops around a lot in memory.
> And if I remember correctly, I got only 10% pipeline utilization, which would suggest that it could be 10x faster with fast enough memory.
You misunderstood. You could likely get a 10x speedup if you restructured how you access memory so that it can prefetched. Memory with 10x better latency does not exist. What you are interested here is prefetching, not memory bandwidth or cache.
It's great that you are interested in this stuff, but I think you need to draw a clearer line between your knowledge and your assumptions.