https://github.com/cfsamson/pixar_raytracer
Ported to Rust from https://mattwarren.org/2019/03/01/Is-CSharp-a-low-level-language/
https://github.com/cfsamson/pixar_raytracer
example raytracer
Last synced: 3 months ago
JSON representation
Ported to Rust from https://mattwarren.org/2019/03/01/Is-CSharp-a-low-level-language/
- Host: GitHub
- URL: https://github.com/cfsamson/pixar_raytracer
- Owner: cfsamson
- Created: 2019-03-03T18:25:18.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-18T22:35:06.000Z (about 6 years ago)
- Last Synced: 2025-02-28T05:56:22.377Z (4 months ago)
- Topics: example, raytracer
- Language: Rust
- Size: 6.01 MB
- Stars: 31
- Watchers: 3
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Port of the postcard sized pathtracer to Rust

This repository hosts the code belonging to this Medium article: [https://medium.com/@cfsamson/from-48s-to-5s-optimizing-a-350-line-pathtracer-in-rust-191ab4a1a412](https://medium.com/@cfsamson/from-48s-to-5s-optimizing-a-350-line-pathtracer-in-rust-191ab4a1a412)
I've added a branch called `max_opt` for PRs that try to optimize the code without caring about keeping similarities with the original. So far we've reduced runtime by another ~25% compared to the current master branch, so if you want the fastest version, or want to contribute to a branch where all changes that makes the code faster is accepted, checkout the `max_opt` branch.
# Contribute
If you have any changes or suggestions, please file a PR. We're not looking to change the algorithms here but show some of the Rust constructs that help you write performant code.