Add raytracer example performance timings
This commit is contained in:
parent
bd9425ebec
commit
79838a1bb3
1 changed files with 5 additions and 0 deletions
|
|
@ -765,6 +765,11 @@ func make_default_scene() -> scene:
|
||||||
|
|
||||||
const default_fovy = 2.0 * atan(0.5)
|
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():
|
func main():
|
||||||
let scene = make_default_scene()
|
let scene = make_default_scene()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue