meirbon / rtbvh

BVH library for Rust
Apache License 2.0
17 stars 0 forks source link

Benchmark against the bvh crate #1

Closed svenstaro closed 3 years ago

svenstaro commented 3 years ago

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.

meirbon commented 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.

meirbon commented 3 years ago

Okay, so I spend this weekend testing a fair bit and found these things:

Construction times for a teapot are as follows:

I have not yet added packet traversal to the visualizer, that will be my next step :)

svenstaro commented 3 years ago

Interesting, thanks! Might be good to add this to your README or somewhere.