c++ is 12,500x faster the python in many cases and yes c is easier to learn but if you know how to code in c++ you can basically do anything@@legacywolf443
@@legacywolf443 would you really gain much by using C instead? im pretty sure there are more optimisation options for C++ out there. like parallel processing libraries that work well with the standard library.
1:48 Dude, precomputing that 20*i really hurt my brain. In normal programming language, operations like integer multiplication should be like one cpu cycle, meaning basically free. This computation is much faster than fetching data from memory, so having a lookup table makes 0 sense. Since you are using python, it's not clear how this translates to instructions but the same principle applies
Pygame uses the cpu to render graphics. What you want to do is use Py Opengl wrapper or a Vulcan wrapper for python to render graphics on the gpu. Even use a python compiler like numba to increase the FPS.
While pygame is slow, this is actually more of a problem that there is a lot of looping when drawing a texture on to a wall. GPU is much more suited to a problem like that, because of a high parallelism that is happening. So writing a shader that does that would be much more effective,
The fact he put Rtx on the thumbnail but its only just raycasting is pretty funny
1:48 by using C++
I like C better, but I like the based idea of not using Python for anything that must be fast(er than calculating everything on paper)
c++ is 12,500x faster the python in many cases and yes c is easier to learn but if you know how to code in c++ you can basically do anything@@legacywolf443
@@legacywolf443 would you really gain much by using C instead? im pretty sure there are more optimisation options for C++ out there. like parallel processing libraries that work well with the standard library.
good one lol
Lmao
3:46 It is indeed released under The Unlicence
Were you ever able to implement floor textures to this? ;p
1:48 Dude, precomputing that 20*i really hurt my brain. In normal programming language, operations like integer multiplication should be like one cpu cycle, meaning basically free. This computation is much faster than fetching data from memory, so having a lookup table makes 0 sense. Since you are using python, it's not clear how this translates to instructions but the same principle applies
python is trash, that's why.
I build mine with python too only i was using sdl2
Damn, my computer only uses templeOS, I’ll have to make my own god textures. (My pc broke and I stupidly put temple OS on my Wii)
Pygame uses the cpu to render graphics. What you want to do is use Py Opengl wrapper or a Vulcan wrapper for python to render graphics on the gpu. Even use a python compiler like numba to increase the FPS.
Amazing
While pygame is slow, this is actually more of a problem that there is a lot of looping when drawing a texture on to a wall. GPU is much more suited to a problem like that, because of a high parallelism that is happening. So writing a shader that does that would be much more effective,
First!
Who cares?
Obunga