Add raytracer example performance timings

This commit is contained in:
Nikita Lisitsa 2026-04-05 19:14:37 +03:00
parent bd9425ebec
commit 79838a1bb3

View file

@ -765,6 +765,11 @@ func make_default_scene() -> scene:
const default_fovy = 2.0 * atan(0.5)
// Measured performance (apple m1 pro, 128x128, 1024 spp):
// 1 thread: 133s (~8us per sample)
// 4 threads: 35s (~8.25us per sample)
// 8 threads: 18s (~8.5us per sample)
func main():
let scene = make_default_scene()