Ray Tracing Series in Rust
Implementation (+ additional experimentation) of Peter Shirley's Ray Tracing in One Weekend Series.
PLY Model (Stanford Dragon)

let aspect_ratio = 3.0 / 2.0;
let image_width = 800;
let image_height = (image_width as f64 / aspect_ratio) as i32;
let samples_per_pixel = 500;
let max_depth = 50;

Version |
Time (s) |
Brute force + stupid stuff |
936.957s |
Iterative tracing |
903.980s |
Parallel; 10 threads |
146.440s |
let aspect_ratio = 1.0;
let image_width = 1000;
let image_height = (image_width as f64 / aspect_ratio) as i32;
let samples_per_pixel = 10000;
let max_depth = 50;

Version |
Time (s) |
10 threads |
12453.138s |
