yiotro / Antiyoy

A source code of android game called 'antiyoy'.
422 stars 54 forks source link

High battery usage #27

Open McAroni opened 6 years ago

McAroni commented 6 years ago

Hi, I feel like this game consumes more battery than it should. There aren't any hardcore 3D graphics or heavy animations but though it eats my battery faster than most other games...

yiotro commented 6 years ago

Well, it depends on device and firmware. I don't really know why it's happening, I can only assume.

So, this game uses LibGDX, which uses OpenGL. It's mostly used for 3d games, so I think that some devices enter 'performance' mode as soon as they notice that OpenGL is used.

Would be nice if LibGDX had special 'battery-saving' mode, but if it has then I just don't know about it.

subchannel13 commented 6 years ago

I haven't seen Antiyoy draining battery, for me it's about as intensive as web browser on forums. Other LibGDX game I know is based on this library is also battery friendly so yeah, @McAroni platform info would be good to know here. Unity games on the other hand, they don't spare any resource :).

McAroni commented 6 years ago

I am using a Samsung Galaxy Tab Pro with an Exynos 5420 from early 2014. It runs LineageOS 14.1 (Android 7.1.2), currently without any further modifications.

so I think that some devices enter 'performance' mode as soon as they notice that OpenGL is used.

I just tried to enable power saving mode after the game started and indeed, this saves much energy without noticeably influencing the performance. So I think you might have pointed out the reason.