Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryoppippi/ray-tracing-in-one-weekend.zig
ray tracing in one weekend in zig
https://github.com/ryoppippi/ray-tracing-in-one-weekend.zig
raytracing-in-one-weekend raytracing-one-weekend zig
Last synced: about 1 month ago
JSON representation
ray tracing in one weekend in zig
- Host: GitHub
- URL: https://github.com/ryoppippi/ray-tracing-in-one-weekend.zig
- Owner: ryoppippi
- License: mit
- Created: 2022-07-16T19:01:41.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-11T09:11:09.000Z (about 2 years ago)
- Last Synced: 2023-03-07T13:22:23.093Z (almost 2 years ago)
- Topics: raytracing-in-one-weekend, raytracing-one-weekend, zig
- Language: Zig
- Homepage: https://raytracing.github.io
- Size: 4.81 MB
- Stars: 16
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ray-Tracing-in-One-Weekend.zig
[Ray Tracing in One Weekend](https://raytracing.github.io/books/RayTracingInOneWeekend.html) in Zig!
![final image](./image/png/image131.png)
## How to execute
```sh
git clone https://github.com/ryoppippi/Ray-Tracing-in-One-Weekend.zig
zig build -Drelease-fast=true run >> image.ppm
```Note that this build works on zig 0.10.0 (because of async api is not work on self-hosted compiler)
## Bechmark
- Machine: Mac Mini 2021
- Chip: Apple M1
- Memory: 16GB
- OS: macOS 12.4(21F79)
- Zig: 0.10.0-dev.3007+6ba2fb3dbBefore Multithreading [9305860](https://github.com/ryoppippi/Ray-Tracing-in-One-Weekend.zig/tree/week1.2)
```sh
________________________________________________________
Executed in 879.32 secs fish external
usr time 863.33 secs 35.00 micros 863.33 secs
sys time 15.33 secs 550.00 micros 15.33 secs
```After Multithreading
```sh
________________________________________________________
Executed in 190.77 secs fish external
usr time 22.87 mins 47.00 micros 22.87 mins
sys time 0.09 mins 825.00 micros 0.09 mins
```## License
MIT
## Author
Ryotaro "Justin" Kimura (a.k.a. ryoppippi)