Re: Extrene CPU Usage
Posted: Wed Sep 19, 2012 5:30 am
I've noticed this CPU usage on my laptop too. It is unfortunate because it really chews through my battery.
Assuming that FTL is not frame rate limited, I'd guess that it is spinning in an event loop waiting for user interaction, and that can use 100% CPU. An easy fix for this is to put a timer in that event loop and if it has been less than, say, 1/100 of a second since the last check (or whatever you need to maintain smooth game play), sleep for a bit of time. This can significantly reduce the CPU usage.
I'd really like to see this fixed, FTL could be the perfect airplane game, if it didn't eat batteries like mad.
Darin
Assuming that FTL is not frame rate limited, I'd guess that it is spinning in an event loop waiting for user interaction, and that can use 100% CPU. An easy fix for this is to put a timer in that event loop and if it has been less than, say, 1/100 of a second since the last check (or whatever you need to maintain smooth game play), sleep for a bit of time. This can significantly reduce the CPU usage.
I'd really like to see this fixed, FTL could be the perfect airplane game, if it didn't eat batteries like mad.
Darin