|
|
|
|
|
by uep
1961 days ago
|
|
I have a simple C++ raytracer I wrote by going through Ray Tracing in One Weekend. I have not even made an attempt to optimize it. I really only made it parallel by splitting it up into tiles. Clang 10 was able to automatically vectorize the code, so it performs >2x as fast as GCC 8.3. To be fair to GCC, I'm using my distro's GCC, but I built a newer Clang for C++ coroutine support. |
|
As far as the article, I'm surprised Cache and Meshlets are 5% slower in 11 than 2.7. Some insight could be gained as to what caused this regression.
[1] https://llvm.org/docs/Vectorizers.html
[2] https://gcc.gnu.org/projects/tree-ssa/vectorization.html