You are browsing as a guest. Sign up (or log in) to start making projects!

3h 23m 57s logged

Devlog 2 - Defocus Blur and Multithreading!!

This will be quite a short one…

Defocus blur

So basically this works by “randomizing” the camera’s origin point. So now, when you want, it could be a small disk on which rays will originate randomly! This “defocuses” (adds a depth of field) effect to the image.

Multithreading

This was a very simple change. I basically just split the work (by scanlines) between multiple threads. Right now you have to hard code it into the code but I promise that I will make a UI for the RayTracer some day. Or at least a CLI. The performance gains are significant. On my CPU (Ryzen 7 9800x3d) was the render almost 5x faster. For how simple this change was, its a massive jump.

I have also linted the code with clang tidy so it follows modern conventions and google’s rules.

Also I’m a bit tired of all the balls already. So next I will look into model loading!

0
1

Comments 0

No comments yet. Be the first!