SecUSo / privacy-friendly-sudoku

Privacy Friendly App to play Sudoku on Android.
https://secuso.org/pfa-sudoku
GNU General Public License v3.0
144 stars 55 forks source link

high CPU-usage & unlimited increase of battery temperature #38

Closed ghost closed 4 years ago

ghost commented 7 years ago

I recognized a constant high CPU usage, which results in a unlimited increase and harmful battery temperature. I tried to configure the app to minimalistic features but this doesn't solve the issue.

On the Fairphone 2 it takes about 5 min and on the HTC One m8 it takes about 15 min to resch > 42°C. Both devices running LineageOS 14.1

It's pity, because this is the best Sudoku app i ever played on Android and i would be totally happy to play one round without a break.

Yonjuni commented 7 years ago

@dedareit Which version of the app are you using, you can find the version at the about page. Is there a notification saying that the app generates levels?

ghost commented 7 years ago

V. 2.1.1 I recognized that the monitored values regard to 12x12 Sudokus, for 9x9 Sudokus it dures a bit longer.

gumby-man commented 6 years ago

Just to add numbers, I tried under comparable conditions (loaded to 100%, powered on, waited for 5 minutes for startup stuff, then played for 30 minutes):

Energy usage shows as 46.26%, while OpenSudoku has 3.38%.

Both apps were initialized and configured before, it's about playing not level generation. I know this is no valid test with really helpful results, but I believe they show that the problem is real and is relevant.

laurentriffard commented 6 years ago

Sudoku v2.1.1 from f-droid on lineageOS 14.1 (Android 7.1) , 6 cpu cores device

Here is a top report while I'm using sudoku app : I started a new grid, placed some numbers and just did nothing a few seconds :

top -m 5 -d 10

… User 29%, System 4%, IOW 0%, IRQ 1% User 1745 + Nice 0 + Sys 296 + Idle 3849 + IOW 0 + IRQ 45 + SIRQ 30 = 5965

PID USER PR NI CPU% S #THR VSS RSS PCY Name 10341 u0_a102 10 -10 27% S 23 2186872K 114680K fg org.secuso.privacyfriendlysudoku 430 system -2 0 4% S 13 401900K 16972K fg /system/bin/surfaceflinger 12389 root RT 0 1% D 1 0K 0K fg mdss_fb0 13538 root 0 -20 1% S 1 0K 0K fg kworker/u13:111058 root 0 -20 1% S 1 0K 0K fg kworker/u13:2

User 29%, System 4%, IOW 0%, IRQ 1% User 1771 + Nice 2 + Sys 289 + Idle 3833 + IOW 1 + IRQ 47 + SIRQ 28 = 5971

PID USER PR NI CPU% S #THR VSS RSS PCY Name 10341 u0_a102 10 -10 27% R 23 2186872K 110612K fg org.secuso.privacyfriendlysudoku 430 system -2 0 4% S 13 401900K 16972K fg /system/bin/surfaceflinger 12389 root RT 0 1% D 1 0K 0K fg mdss_fb0 11058 root 0 -20 1% S 1 0K 0K fg kworker/u13:213538 root 0 -20 1% S 1 0K 0K fg kworker/u13:1

It seems that sudoku is constanstly using more than one CPU core, maybe two.