Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made the raytracer multi threaded using rayon #2

Merged
merged 8 commits into from Dec 20, 2020
Merged

Made the raytracer multi threaded using rayon #2

merged 8 commits into from Dec 20, 2020

Conversation

ghost
Copy link

@ghost ghost commented Dec 15, 2020

I created a new structure Canvas which abstracts away some of the render logic

currently the performance is limited by utils::random_double as it uses thread_rng

	new file:   canvas.rs
	new file:   image.ppm
	modified:   main.rs
	modified:   material/material.rs
	modified:   material/mod.rs
	modified:   objects/hittable.rs
	modified:   objects/hittable_list.rs
	modified:   objects/moving_sphere.rs
	modified:   objects/sphere.rs
	modified:   ray.rs
	modified:   utils.rs
	modified:   vec3.rs
	modified:   ../Cargo.toml
	modified:   Cargo.toml
	modified:   src/canvas.rs
	modified:   src/colors.rs
	modified:   src/main.rs
	modified:   src/vec3.rs
	modified:   src/camera.rs
	modified:   src/canvas.rs
	modified:   src/colors.rs
	modified:   src/main.rs
	modified:   src/material/material.rs
	modified:   src/objects/hittable.rs
	modified:   src/objects/mod.rs
	modified:   src/objects/moving_sphere.rs
	modified:   src/objects/sphere.rs
	modified:   src/ray.rs
	modified:   src/utils.rs
	modified:   src/vec3.rs
	modified:   src/canvas.rs
	modified:   src/main.rs
	modified:   src/canvas.rs
	modified:   src/main.rs
	modified:   src/objects/hittable.rs
	modified:   src/objects/hittable_list.rs
	modified:   src/objects/moving_sphere.rs
	modified:   src/objects/sphere.rs
	modified:   src/colors.rs
	deleted:    src/image.ppm
	modified:   src/ray.rs
@Wafelack
Copy link
Owner

Pr accepted. Thx for contribution.

@Wafelack Wafelack merged commit 88e76b4 into Wafelack:master Dec 20, 2020
@Wafelack
Copy link
Owner

Just a thing: try to not to use unstable features in code plz ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants