Replies: 1 comment 5 replies
-
if I set the virtual machine to have 8 cores I have this |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've replaced
gavare.c
from the default demos that are installed. While it worked well I wasn't able to figure out how to make it run in parallel. I think it was due to all of the global variables being modified during runtime. I found another ray tracer written by Andrew Kensler and was able to get it running on BareMetal. I was also able to get it running in parallel! Each available core will render a line until the image is finished.https://github.com/ReturnInfinity/BareMetal-Demo/blob/master/src/raytrace.c
Note the lines at the bottom of the image as each core renders a line. This was on the 4-core VirtualBox system

I've also tested this on a 6-core physical system.
gavare.c
will remain inBareMetal-Demo
for reference.Beta Was this translation helpful? Give feedback.
All reactions