[TIMOB-9221] iOS: ScrollableView lag while scrolling views
GitHub Issue | n/a |
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-07-31T22:20:09.000+0000 |
Affected Version/s | Release 2.0.1 |
Fix Version/s | n/a |
Components | iOS |
Labels | api |
Reporter | Eduardo Gomez |
Assignee | Vishal Duggal |
Created | 2012-05-24T07:36:45.000+0000 |
Updated | 2017-03-20T20:38:45.000+0000 |
Description
Problem
When scrolling views in Scrollable View a lag / jittery is briefly shown - almost noticeable.
Tested on
iOS 5 simulator
iPod 5.1
Expected behavior
Scrolling run smoothly
Steps to reproduce
1. Load attached project into Studio IDE
2. Build & Run
3. Start scrolling images - a brief-short lag is noticeable while scrolling views
Attachments
Scrollable view has a chacheSize property which basically controls the number of views rendered and kept in cache. The lag/jitter is actually because of the backgroundImage loading and scaling (happens on the UI thread). At this point the device processing power comes into play. Ways to mitigate Use smaller resources for smaller form factor devices(The images in the project are all 640x960 which is obviously too large for anything other that an iPAD). Ways to fix Set the cacheSize to number of views which ensures all views are always rendered.
Closing ticket as invalid.