android-gif-drawable icon indicating copy to clipboard operation
android-gif-drawable copied to clipboard

Bug: live wallpaper sample seems to take more CPU, and use it even when screen is turned off

Open AndroidDeveloperLB opened this issue 5 years ago • 4 comments

Compared to this, it uses more CPU : https://github.com/huzongyao/AndLibNsgif

And, after making a better code than what they have for viewing GIF (here) and especially pausing it, I got to 0% CPU:

image

, while on "android-gif-drawable" sample of live wallpaper I can see it still uses CPU, even when the screen is turned off :

image

AndroidDeveloperLB avatar Sep 27 '18 05:09 AndroidDeveloperLB

OK, I'll check this. Thanks.

koral-- avatar Sep 28 '18 19:09 koral--

@koral-- I also think their CPU usage is a bit lower (for same file).

AndroidDeveloperLB avatar Sep 28 '18 20:09 AndroidDeveloperLB

Hello, has this problem been solved? Looking forward to the new version! thank you

liupengandroid avatar Apr 19 '19 11:04 liupengandroid

@liupengandroid Seems better. It stops using the CPU while the device screen is turned off, but it takes some time till it resumes.

AndroidDeveloperLB avatar Apr 19 '19 21:04 AndroidDeveloperLB