Hello Mansour
>> "What makes Ring faster than Python and C in this regard?"
It's faster than Python in this sample (BUT NOT FASTER THAN C)
Since RingRayLib uses RayLib 2.5 while my Python test program uses latest version of RayLib
I tried to use RayLib 5.0 (Latest release) then test again
Ring (waving cubes) ---> 120 FPS
Python (waving cubes) ---> 84 FPS
So back to your question, Why Ring is Faster than Python in This sample (provide extra 36 frames)
We did an optimization to the sample code which cache ColorFromHSV() function output
Without this optimization Ring & Python will provide similar speed (To be more accurate Python will be slightly faster < 25%)
On the other Hand ---> The threads version of the sample (Since Ring doesn't have GIL)
Ring ---> 230 FPS (with/without caching ColorFromHSV() output)
Greetings,
Mahmoud