SlideshowWallpaper icon indicating copy to clipboard operation
SlideshowWallpaper copied to clipboard

Too much RAM consuming

Open VasilisKos opened this issue 2 years ago • 1 comments

I tried your app today, and it's really nice. There's only one quite big issue. The background service takes too much RAM. On my device it takes more than 140MB, with 30 images selected. Would it be possible to make it work without a background service? At least, make it use less. It's too much for such a simple live wallpaper. I use a Nokia 6.2, with stock Android 11.

VasilisKos avatar Jul 26 '23 09:07 VasilisKos

Hi @VasilisKos, thank you for testing that. To be honest, I didn't. I will test, what causes that RAM usage as soon as I can. What I can say for now: It doesn't depend on the number of images, because only the currently displayed image is loaded into memory. I have 142 images selected and 135 MB of RAM usage. The service is needed, because it is the thing drawing the image on your screen. But I can assure you, it only runs, when necessary: When changing the displayed image, sometimes when opening the home screen or unlocking the phone and when you scroll between home screens. If you want, you can look that up here: https://github.com/Doubi88/SlideshowWallpaper/blob/master/app/src/main/java/io/github/doubi88/slideshowwallpaper/SlideshowWallpaperService.java

Doubi88 avatar Jul 26 '23 10:07 Doubi88