View Single Post
  #5  
Old December 24th, 2005, 02:16 AM
Fingers's Avatar

Fingers Fingers is offline
Sergeant
 
Join Date: Jun 2005
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
Fingers is on a distinguished road
Default Re: Something wrong with CPU usage?

It's just my old-fashioned programming techniques... The launcher uses up CPU because it's running in a loop waiting for user input... It would've been easier to fix this in the launcher than the game (as it's not performance-critical) by sleeping for a period of time each time it loops, but I didn't think about it. Maybe some time in the future I'll look into this. (One of the problems is I don't think SDL has a portable sleep function so I'd need to use the win32 api and the Mac port would need to use something different)