Walther / clovers

Ray Tracing in Rust
https://walther.github.io/clovers/clovers/
13 stars 1 forks source link

2022 05 30 small fixes #140

Closed Walther closed 2 years ago

Walther commented 2 years ago

Various fixes here and there.

Before:

Benchmark 1: ./target/release/clovers-cli -w 512 -h 256 -s 100 -q -i scenes/new-main-scene.json -o temp.png
  Time (mean ± σ):     19.665 s ±  3.659 s    [User: 1210.229 s, System: 1.089 s]
  Range (min … max):   15.863 s … 25.150 s    10 runs

After:

Benchmark 1: ./target/release/clovers-cli -w 512 -h 256 -s 100 -q -i scenes/new-main-scene.json -o temp.png
  Time (mean ± σ):      3.861 s ±  0.016 s    [User: 208.309 s, System: 0.505 s]
  Range (min … max):    3.835 s …  3.882 s    10 runs

Looks like an approximately 80% time reduction at least on this one particular (content-heavy) scene, yay! 🎉 (Additionally quite happy with the reduction in variance - much more stable render times on the same scene)