Supercharged Python with Numba: 3d game ray tracing maze, with 100x better performance, C++ level

Опубликовано: 15 Апрель 2026
на канале: FinFET
5,733
178

In this video I'm going to show you how I made my ray tracing maze game run very smoothly while using a single core.

In addition I added textures to some walls and a new type of geometry: spheres, including reflective spheres.

And that's not all, I finally looked up a smarter solution to optimize the ray algorithm, resulting on even more performance gains



Code in Python: https://github.com/FinFetChannel/pytr...

Code and .exe demo in C++: https://github.com/FinFetChannel/RayT...


OLC Pixel Game Engine from @Javidx9 : https://github.com/OneLoneCoder/olcPi...
Algorithm DDA: https://lodev.org/cgtutor/raycasting....
Meu canal em português:    / @finfetptbr  


Contents:
00:00 Intro
01:00 Quick recap
02:00 C++ version
03:00 Back to Python: find the bottleneck
04:25 Solution: unified Numba function
06:00 Textures
06:50 Spheres
07:40 Optimization with DDA
08:20 Try it for yourself