New answers tagged game-loop
The first issue is that you are re-creating and destroying the buffers, reloading the texture, and recompiling the shader on every single draw loop. This is the source of the huge CPU usage. As for the memory going up, there could be a memory leak in the scripting language you are using. Not recreating everything on every loop will probably reduce the ...
Top 50 recent answers are included