Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9221] iOS: ScrollableView lag while scrolling views

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2012-07-31T22:20:09.000+0000
Affected Version/sRelease 2.0.1
Fix Version/sn/a
ComponentsiOS
Labelsapi
ReporterEduardo Gomez
AssigneeVishal Duggal
Created2012-05-24T07:36:45.000+0000
Updated2017-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

FileDateSize
1iPad.zip2012-05-24T07:36:46.000+000010066282
ScrollableView.jpg2012-05-24T07:36:46.000+0000101378

Comments

  1. Vishal Duggal 2012-07-31

    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.
  2. Lee Morris 2017-03-20

    Closing ticket as invalid.

JSON Source