CPU usage too high when idle

Bug #802048 reported by Karsten Siegmund
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Brain Party
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.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers