Raytracing using a Tiny85....!

I’ve just written a raytracer that fits in a Tiny85, here’s a pic of it running on a 96x64 pixel OLED screen.

Full details and source code download: http://www.arvblog.com/arvblog-1-raytracing-on-an-atmel-tiny85/


well done!

How many FPS was that?

Just kidding.

It was actually quite tricky to get it to fit, took a lot of fiddling around with local variables, etc., to reduce the RAM usage. 512 bytes sounded like planty of RAM but it wasn't.

The Arduino compiler isn't very efficient space-wise. It kept on running out of RAM and crashing when local variables clash with the stack (stack overflow).

Next up: A Tiny85 render farm....