Return-Path: X-Original-To: apmail-flex-users-archive@www.apache.org Delivered-To: apmail-flex-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 87C6A111F7 for ; Mon, 30 Jun 2014 15:10:41 +0000 (UTC) Received: (qmail 91469 invoked by uid 500); 30 Jun 2014 15:10:40 -0000 Delivered-To: apmail-flex-users-archive@flex.apache.org Received: (qmail 91429 invoked by uid 500); 30 Jun 2014 15:10:40 -0000 Mailing-List: contact users-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@flex.apache.org Delivered-To: mailing list users@flex.apache.org Received: (qmail 91418 invoked by uid 99); 30 Jun 2014 15:10:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jun 2014 15:10:40 +0000 X-ASF-Spam-Status: No, hits=2.9 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [85.18.95.87] (HELO mr003msb.fastweb.it) (85.18.95.87) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jun 2014 15:10:35 +0000 Received: from medialogic.local (81.208.76.42) by mr003msb.fastweb.it (8.5.140.03) id 53A5A01C00950F18 for users@flex.apache.org; Mon, 30 Jun 2014 17:10:12 +0200 Message-ID: <53B17DBF.4090106@medialogic.eu> Date: Mon, 30 Jun 2014 17:09:51 +0200 From: Gabriele Campi User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: users@flex.apache.org Subject: Re: list of images: poor performances References: <53AD7A95.2060709@medialogic.eu> ,<53B16693.3010902@medialogic.eu> <047921e51b304f86aa119af4762b9327@BL2PR02MB500.namprd02.prod.outlook.com> In-Reply-To: <047921e51b304f86aa119af4762b9327@BL2PR02MB500.namprd02.prod.outlook.com> Content-Type: multipart/alternative; boundary="------------080007060908090809030202" X-Virus-Checked: Checked by ClamAV on apache.org --------------080007060908090809030202 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit 150 images Size 10 to 100 KB 400x400 pixel On iPad retina is almost ok. On iPad2/Mini is slow. On Android (galaxy tab 2) the list is unusable. Every new row of the list seems to freeze the ui while images are loading. I don't understand, Isn't the load process of the images asynchronous? Gabri Il 30/06/14 16:49, Alex Harui ha scritto: > How many images are we talking about? What pixel dimensions are the images in the list? What are some of the sizes in bytes of the images being downloaded? > > -Alex > ________________________________________ > From: Gabriele Campi [gabriele.campi@medialogic.eu] > Sent: Monday, June 30, 2014 6:30 AM > To: Javier Guerrero Garc�a; users > Subject: Re: list of images: poor performances > > Nothing seems to work... performances are even worse with a timer or delay > I cannot cache all the images because of memory consumption > > Il 28/06/14 10:44, Javier Guerrero Garc�a ha scritto: >> Also adjust the opaqueBackground, don't set the image sources >> inmediately but after a short timeout (so if you scroll down fast >> skipping lets say 50 images you DON'T load 50 images before loading >> the 51st), and use a contentCache loader with queueing >> (http://corlan.org/2011/08/16/flex-mobile-development-caching-images-using-contentcache/) >> >> >> P.S. you can use the ContentCache straight from MXML, not like the >> sources in the link. Just declare it, set an ID and the rest of the >> parameters, and set contentCache="{id}" in your itemRenderer. >> >> >> On Sat, Jun 28, 2014 at 6:58 AM, Alex Harui > > wrote: >> >> Make sure you are using a bitmap cache and that the images are not >> being scaled down on the device. >> Sent via the PANTECH Discover, an AT&T 4G LTE smartphone. >> >> Gabriele Campi > > wrote: >> >> >> Hi, >> in a mobile app I need to display a list of 200 images. On the list I >> use a tileLayout with virtualLayout=true and a custom itemRenderer >> that >> only contains a Spark Image. On the set value method of the >> itemrenderer >> I change the source of the image with the path to the new bitmap. >> It works, but performances are poor and the list doesn't scroll >> well. On >> iPad it's almost acceptable, but on Android I have to scroll row >> by row >> and wait until every image of the row is loaded. >> Any suggestions to improve the situation? >> Thanks >> >> Gabriele >> >> > --------------080007060908090809030202--