High CPU usage on Pong clone
- by max
I just made my first game, a clone of Pong, using OpenGL and C++. But its using ~50% of the CPU, which I guess is very high for a game like this. How can I improve that? Can you please look up my code and tell me what all things I am doing wrong? Any feedback is welcome.
http://pastebin.com/L5zE3axh
Also it would be extremely helpful if you give some general points on how to develop games in OpenGL efficiently..
Thanks in advance!