Meetic / Shuffle

An easy to use swiping-view for Android
886 stars 83 forks source link

Slow performance on low end smart phones #7

Closed pixelbendr closed 8 years ago

pixelbendr commented 8 years ago

Tested this library on a small screen low end smart phone and the performance is not that great. Is there an option to use hardware acceleration? Regards.

florent37 commented 8 years ago

I added layer (hardware accelerations) on the 1.0.4, can you check ?

compile 'com.meetic.shuffle:shuffle:1.0.4'
compile 'com.meetic.dragueur:dragueur:1.0.2'

http://blog.danlew.net/2015/10/20/using-hardware-layers-to-improve-animation-performance/

pixelbendr commented 8 years ago

using your blog post I added shuffle.setLayerType(View.LAYER_TYPE_HARDWARE, null); but I was hoping for a setHardwareAcceleration(true) option where the library intuitively knows when to use hardware acceleration. :) Regards. your library is awesome!

florent37 commented 8 years ago

The libs now use by default hardware accélération, you don't need to add this Line ;) Le 11 mai 2016 17:42, "Evans Domina Attafuah" notifications@github.com a écrit :

using your blog post I added shuffle.setLayerType(View.LAYER_TYPE_HARDWARE, null); but I was hoping for a setHardwareAcceleration(true) option where the library intuitively knows when to use hardware acceleration. :) Regards. your library is awesome!

— You are receiving this because you modified the open/close state. Reply to this email directly or view it on GitHub https://github.com/Meetic/Shuffle/issues/7#issuecomment-218499837

pixelbendr commented 8 years ago

Ok. Thanks for this.

Sent from my iPhone 6

On May 11, 2016, at 3:54 PM, Florent CHAMPIGNY notifications@github.com wrote:

The libs now use by default hardware accélération, you don't need to add this Line ;) Le 11 mai 2016 17:42, "Evans Domina Attafuah" notifications@github.com a écrit :

using your blog post I added shuffle.setLayerType(View.LAYER_TYPE_HARDWARE, null); but I was hoping for a setHardwareAcceleration(true) option where the library intuitively knows when to use hardware acceleration. :) Regards. your library is awesome!

— You are receiving this because you modified the open/close state. Reply to this email directly or view it on GitHub https://github.com/Meetic/Shuffle/issues/7#issuecomment-218499837

— You are receiving this because you modified the open/close state. Reply to this email directly or view it on GitHub