- Home /
iOS bitmap scrolling quite sluggish
Hi,
Part of our App, we have some vertical scrollable content (credit, legal, etc) mostly texts and some are bitmaps.
For some reason, the scrolling on the iPad and iPhone 4 is rather slow and sluggish, and always feels a bit behind your scrolling finger... (Ironically, on the iPhone 3Gs its a bit better due to its lower screen resolution (and despite of its slower older cpu/gpu ).
Is there a way to optimize such non-demanding and rather trivial UI behavior? This is especially noticeable because the main App functionality in 3D is extremely responsive and smooth...leaving these UI screens to stick out...
Thanks!
Sounds quite strange to me, but can I suggest to smooth out inputs with $$anonymous$$athf.SmoothDamp (in the case you haven't tried it yet)?
I use this system to make some manual cameras to rotate really smoothly.
Sorry maybe I wasn't clear enough. The problem is with 2D UI elements. All 3D rendered objects and cameras are super smooth.
Depending on how complicated your scene is when these scrollable GUI elements are up, you may need to not use the GUI and stick to a textured Atlas solution like EZ GUI: http://www.anbsoft.com/middleware/
The scene is actually very simple when this UI is used, no 3D is running underneath it at all. And yet, the response to the finger scrolling is less than satisfactory.
It would depend on what you're doing with your code. It's hard to answer because you haven't posted code, and it's an extremely general question.
Answer by Dreamora · Jun 27, 2011 at 12:43 AM
If something is slugish on 4th gen & iPad1 but runs well on 3GS, thats nearly always a clear indication of fillrate overusage. The problem then is not about it moving smooth or alike but as a matter of fact the gpu can't render as many pixels as it would need to fullfill your rendering desires.
Reason for that is usage of inappropriate (mobile unfriendly) shaders which use blending, alpha blending or at worst transparent cutout shaders.
Look at what shaders you use and ensure to not use blending of any type unless you really need it.
Your answer
Follow this Question
Related Questions
Scroll Rect as bitmap 0 Answers
scroll wheel get weapon 3 Answers
Camera won't scroll - iTween 0 Answers
Scroll bar not showing up? 0 Answers
Scrolling level Instantiate after cycle 0 Answers