Closed svenstaro closed 3 years ago
Hey! Thanks! Nice to hear from you and I totally agree. I had actually been meaning to compare bvh libraries in Rust but just never really had the time. To be honest, my current benchmark isn’t very representative either (it just traces the same ray over and over) so I’m open to new ideas.
Okay, so I spend this weekend testing a fair bit and found these things:
bvh 0.5: ~45 MRays/s
rtbvh (spatial): ~66 MRays/s
rtbvh (spatial mbvh): ~94 MRays/s
rtbvh (binned sah): ~64 MRays/s
rtbvh (binned sah mbvh): ~91 MRays/s
Construction times for a teapot are as follows:
I have not yet added packet traversal to the visualizer, that will be my next step :)
Interesting, thanks! Might be good to add this to your README or somewhere.
Hey, I think this is a very interesting project! I maintain the bvh crate and I think it'd be super interesting to see a benchmark between this. I suppose yours will be many times faster but I'm very interested to see just how fast.