nextcloud/news-android

Android 5.0.2 performance (can anybody reproduce?)

einsweniger opened this issue · 19 comments

Since updating to Android 5.0.2, the newsreader is very sluggish when reading animated pictures from imgur via the "internal browser" of the App. On 4.4.4 it did perform alright, but not great. (I guess there is still some code that needs to be run in background and not in UI thread.)

Steps to reproduce: Subscribe to any Feed on imgur, and look for some animated pictures.

Why I think it is an issue with the reader and not with my setup: the normal browser (not chrome) does display the pages without stutters or breaks.

My hardware: Moto G (2nd gen)
ROM: http://forum.xda-developers.com/moto-g-2014/development/rom-paranoidandroid-alpha-1-t3017565

Will be happy provide more information if necessary.

regards.

Thank you for the report. Since Android 1.* there were issues with the playback of animated pictures (gif). Probably they changed something in the Android 5.* default webview implementation which produces this issue. Currently I've no device with Android 5 but I was thinking about a feature to show gif images in a special view (there are some android open-source gif's views available). But it's difficult when there is also text on the website (not only the gif).

@Raydiation what do you think of such a feature? Useful? If I'm right you're also reading rss feeds with gif's, aren't you? Are you also using Android 5? Any performance issues?

@David-Development you should use cyanogenmod ;)

yep using android 5.0 and it works just fine on a nexus 5. I've also noticed that gifs dont work, I'd probably look up why the webview does not play them. Special view is definitely not a good idea.

@Raydiation I'm using already a custom rom but Lollipop is still pre-alpha and cm11+ is not working with my htc docking station. So I can't update :(

Okay, I try to fix the webview. Thanks!

@gdkags Please test the latest beta (available for Google Play Beta Testers)

Do I have to join g+ for beta-access? I'd rather not.

You'll have to join the following google group: https://groups.google.com/d/forum/owncloud-news-android-app
I don't know if a g+ account is required for that. Otherwise you'll have to wait until I'm home again to push the apk to github as well.

Alright, I applied. I mixed up g+ and groups.

I tried the beta and it still persists. Would you like some logcat output? Dunno if it helps :D

Update killed performance on my android 5 device BTW. Do you use software rendering?

Because software rendering sucks :P

Hm OK seems to work fine now

hardware-rendering causes the issue with the animated gif images. I've updated my phone to lollipop so I'm going to test it again.
@Raydiation is the performance great/good or has it become worse than before? (Because you wrote it killed performance but than it works fine :D)

Scrolling is sometimes horrible on derstandard.at but they've changed their mobile stuff so I don't really know

OK performance is horrible in general now. I can confirm this with other feeds

Maybe disable hardware rendering only for specific devices?

@Raydiation Sorry for the delay. Hm yes.. but depending on what? Probably I can add an option (in the settings page) for setting the software rendering or hardware rendering mode. Or do you think it might be better to check if there are some gif's in the source code and enable software rendering then?

Blacklisting devices maybe?

But than everyone with "performance issues" has to report the issue and then I need to update the "blacklist". I think the option with the "website contains a gif" is a better solution, isn't it?

Hm, I'd actually just ignore it and wait for bugfixes from the google team since the chrome frame is updated over the appstore. The current solution makes nearly all pages sluggish while this problem seems to be purely related to imgur and OPs device