As noted in this answer, fading edges in ScrollView
s can be slow. I want to know, why?
"Using fading edges may introduce noticeable performance degradations and should be used only when required by the application's visual design. To request fading edges with API level 14 and above, use the
android:requiresFadingEdge
attribute instead"http://developer.android.com/reference/android/R.attr.html#fadingEdge
My interest is motivated by two things:
- Wanting to use fading edges to provide a visual cue to the user
- Noticing /extreme/ performance loss on a PowerVR SGX 544 Galaxy S4 when using fading edges. (dropping from 20-30 fps to 0.2 fps), while not-seeing that performance loss on other GPUs (e.g. Adreno 320 HTC One)
I thought that maybe fading edges were implemented as separate layers in SurfaceFlinger and that they triggered GLES compositing over hardware compositing, but that is not so, according to this comment