edin / raytracer

Performance comparison of various compilers
MIT License
57 stars 22 forks source link

Adding Rayon parallel version #17

Closed darleybarreto closed 3 years ago

darleybarreto commented 3 years ago

Hi, I took the liberty of adding a parallel version. Also add my name on the authors, but I can remove if you'd like. I tried adding SIMD, but it didn't improve very much. Let me know what you think.

To run the parallel version you can use

cargo run --release parallel

The serial is

cargo run --release

Regards

darleybarreto commented 3 years ago

I solve the conflicts using the online github GUI, hopefully there's no error. There's room for improvement there, for instance, instead of creating the scene objects every time, a box enable reusing the same objects in the loop.