There are excellent discussions of game loops, animation timing, etc. on the Internet. I can't tell what you're doing exactly, but I'm sure it can be improved. Search for the topics I've suggested...
Type: Posts; User: GregBrannon
There are excellent discussions of game loops, animation timing, etc. on the Internet. I can't tell what you're doing exactly, but I'm sure it can be improved. Search for the topics I've suggested...
I believe you're asking for help with eliminating or reducing the delay, and the delay is not occurring in the code you posted. Show your game loop, or the while ( true ) loop, that keeps the game...