Miou-zora/Zaytracer
Raytracer in Zig
ccf7297ef6c01e21b2d51ad81b5b6ce929e86a00
b97be7d14fd7c421fe55f31a37c8d4ba2826ac6c
0de5f8aed0565f2dbd8bc6851499c85df9e73534
zig build -Doptimize=ReleaseFast
zig build
zig build
or zig build -Doptimize=ReleaseFast
# It will build the project and run it. (do nothing if the project is already built)
zig build run
# or you can run the executable directly
./zig-out/bin/Zaytracer
To take performance measures you can use th perf tool like this:
perf record -g ./Zaytracer
perf report -g 'graph,0.5,caller'
You will need a debug build for that, else you won't have debug symbols.
You can use the hyperfine tool to measure the time of execution of the program.
After zig build -Doptimize=ReleaseFast
:
hyperfine "./zig-out/bin/Zaytracer" --warmup 10