CPU usage too high when idle
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Brain Party |
New
|
Undecided
|
Unassigned |
Bug Description
CPU usage is much too high while the game is showing the menus. While that doesn't matter too much for desktop systems, it's kind of horrible for moblie devices.
I think it must be the main loop where you keep polling with SDL_PollEvent. Can't you check if something is actually done at the time (i.e. moving from one menu to the next) and if not use SDL_WaitEvent to keep the program idle without leeching lots of CPU power?
I dunno... but I would say that is true for every program - if it is just sitting there, it should use barely more than 0% CPU power?
On a similar topic, it would be nice if there was an option to switch off e.g. the rotating background pattern. I don't see how it adds to the game and it also uses CPU capacity that might be scarce on mobile devices.
Cheers,
I.