I have a game with a main loop that looks like
while(true)
{
doGameLogic();
drawLevel();
}
Someone on another forum said that this is a bad idea because it would lead to 100% CPU usage which would ‘be a killer to power and heat consumption’. Is this true? Right now my game is running at about 1000 FPS, but I could add a Thread.sleep(1) command in there if that would make things better for the user. (The game thread is already running at MIN_PRIORITY).