Re: Coding a better flex mobile app

2014-04-02 Thread Angelo Lazzari
Hi Gabriele, i would suggest you to continue using Apache Flex but adding the Starling framework and the fathersUI interface. This software stack will improve your app performance FOR SURE but you have to consider to re-code at least the view layer (if you developed in MVC architecture) or the ent

Re: Coding a better flex mobile app

2014-04-02 Thread OmPrakash Muppirala
On Wed, Apr 2, 2014 at 1:05 AM, Gabriele Campi [Media Logic] < gabriele.ca...@medialogic.eu> wrote: > Hi, > > last year I created a mobile app for IOS and Android using Apache Flex. > > My app uses a SQLite database and makes large use of graphics and > bitmapdata (being a design app that manipula

Re: Coding a better flex mobile app

2014-04-02 Thread Tom Chiverton
On 02/04/14 09:05, Gabriele Campi [Media Logic] wrote: My app uses a SQLite database and makes large use of graphics and bitmapdata (being a design app that manipulates images) and I encountered many problems with general performances and memory management. My app now is heavy and slow. This

Re: Coding a better flex mobile app

2014-04-02 Thread Justin Mclean
Hi, > My app uses a SQLite database and makes large use of graphics and bitmapdata > (being a design app that manipulates images) and I encountered many problems > with general performances and memory management. My app now is heavy and slow. Scout should be able to show you many places where y

Re: Coding a better flex mobile app

2014-04-02 Thread Gabriele Campi [Media Logic]
Hi Om, Tom and Justin, I experienced performance problems with bitmapdata (I had to avoid pixel to pixel iterations cause they're too slow, also on small images of 1024x768px) and in general with views transitions and UI components (they aren't as fluid and responsive as the native apps' ones

Re: Coding a better flex mobile app

2014-04-02 Thread After24
Hello, >From my personal experience, it's not possible to get a super fluid app using flex mobile (especially on mid range phones and tablets). I think this perception is mainly due to the list component which never reaches 50/60 fps even when its itemRender is well optimized. I know that this ne

RE: Coding a better flex mobile app

2014-04-02 Thread Maurice Amsellem
e d'origine- De : After24 [mailto:vinc...@after24.net] Envoyé : mercredi 2 avril 2014 12:13 À : users@flex.apache.org Objet : Re: Coding a better flex mobile app Hello, From my personal experience, it's not possible to get a super fluid app using flex mobile (especially on mid range p

RE: Coding a better flex mobile app

2014-04-02 Thread Mark Line
@flex.apache.org Subject: Re: Coding a better flex mobile app Hello, >From my personal experience, it's not possible to get a super fluid app using >flex mobile (especially on mid range phones and tablets). I think this >perception is mainly due to the list component which never rea

RE: Coding a better flex mobile app

2014-04-02 Thread Maurice Amsellem
ughts? Maurice -Message d'origine- De : Maurice Amsellem [mailto:maurice.amsel...@systar.com] Envoyé : mercredi 2 avril 2014 12:27 À : users@flex.apache.org Objet : RE: Coding a better flex mobile app >I think this perception is mainly due to the list component which never >reach

RE: Coding a better flex mobile app

2014-04-02 Thread After24
Hi Maurice, No that's not true, The 24 fps limit is a misconception. In fact some studies shows that the amelioration of movements perception by human eyes can be improve until 120 fps ( http://onlinelibrary.wiley.com/doi/10.1889/1.2433276/abstract

RE: Coding a better flex mobile app

2014-04-02 Thread Maurice Amsellem
I am interested, but the article cannot be downloaded from the link. Is it a paying service ? Maurice -Message d'origine- De : After24 [mailto:vinc...@after24.net] Envoyé : mercredi 2 avril 2014 12:41 À : users@flex.apache.org Objet : RE: Coding a better flex mobile app Hi Ma

Re: Coding a better flex mobile app

2014-04-02 Thread Gabriele Campi [Media Logic]
But for now I’m forced to choose other solutions to get a fluid mobile app, to be specific I use : - Starling - Feather UI - Robotleg - AS3 signal So you're using Starling and FeatherUI for the interface and Robotleg for the data handling? Is it possible to do the same with Flex instead of RL? A

RE: Coding a better flex mobile app

2014-04-02 Thread After24
Maurice, I only have access to the abstract of the study. 2 more links (in french) on the subject : http://www.nofrag.com/2003/nov/24/8629/ http://www.lefigaro.fr/cinema/2012/12/13/03002-20121213ARTFIG00653--bilbo-le-hobbit-la-revolution-des-48-images-p

RE: Coding a better flex mobile app

2014-04-02 Thread After24
on my nexus 5 (I know it’s a higher > end), you should check it out > > -Original Message- > From: After24 [mailto: > vincent@ > ] > Sent: 02 April 2014 11:13 > To: > users@.apache > Subject: Re: Coding a better flex mobile app > > Hello, > &

RE: Coding a better flex mobile app

2014-04-02 Thread Alex Harui
It will be interesting to see if FlexJS on mobile is faster. Peter is working on a mobile app right now. -Alex From: After24 [vinc...@after24.net] Sent: Wednesday, April 2, 2014 3:12 AM To: users@flex.apache.org Subject: Re: Coding a better flex mobile

RE: Coding a better flex mobile app

2014-04-02 Thread OmPrakash Muppirala
> > end), you should check it out > > > > -Original Message- > > From: After24 [mailto: > > > vincent@ > > > ] > > Sent: 02 April 2014 11:13 > > To: > > > users@.apache > > > Subject: Re: Coding a better flex mobile app &g

RE: Coding a better flex mobile app

2014-04-02 Thread flex
e the framework itself is great because it makes things easier and faster for development and control over the runtime. David -Original Message- From: OmPrakash Muppirala To: users@flex.apache.org Sent: Wed, 02 Apr 2014 9:51 AM Subject: RE: Coding a better flex mobile app "Just to

Re: Coding a better flex mobile app

2014-04-02 Thread Gary Yang
...@after24.net] > Sent: Wednesday, April 2, 2014 3:12 AM > To: users@flex.apache.org > Subject: Re: Coding a better flex mobile app > > Hello, > > From my personal experience, it's not possible to get a super fluid app > using flex mobile (especially on mid range ph

Re: Coding a better flex mobile app

2014-04-02 Thread After24
Hi Gabriele, Feather UI works on top of the Starling framework, I use it to for the user interface. Robotlegs and AS3 signal helps me to implement MVC architecture. For handling remote operations I use rpc.swc (wich has a dependency with framework.swc) of the flex framework. You can find document

Re: Coding a better flex mobile app

2014-04-02 Thread simon gladman
should check it out > > > > > > -----Original Message- > > > From: After24 [mailto: > > > > > vincent@ > > > > > ] > > > Sent: 02 April 2014 11:13 > > > To: > > > > > users@.apache > > > > > Subject: Re: C

RE: Coding a better flex mobile app

2014-04-02 Thread After24
gt; >> >> >> >> Mark Line wrote >> > Not sure how it was coded, but on >> > http://flex.apache.org/community-showcase.html >> > >> > CityU Mobile runs really really nice on my nexus 5 (I know it's a >> higher >> >

Re: Coding a better flex mobile app

2014-04-02 Thread Javier Guerrero García
else. Meanwhile the framework itself is great because it > makes > > things easier and faster for development and control over the runtime. > > > > David > > > > > > > > -Original Message- > > From: OmPrakash Muppirala < > > > big

Re: Coding a better flex mobile app

2014-04-02 Thread Javier Guerrero García
gt;> >> > > wrote: >> > >> >> Hi Mark, >> >> >> >> Yes but like you said it's a Nexus 5... and it will probably take time >> >> before this level of power reaches low-end devices. >> >> >> >> >&

Re: Coding a better flex mobile app

2014-04-02 Thread Gabriele Campi [Media Logic]
Have anyone on this thread EVER had a look at the s:Application object attribute*frameRate*? I did, and my apps are running at 60 but I didn't noticed great improvements. I think that performance and fps are only part of the problem. On low end devices (but also iPad2 or iPad mini) the availabl

Re: Coding a better flex mobile app

2014-04-02 Thread Javier Guerrero García
Yep, although it's true that retina iPads trend to run a little bit slow in some versions of the SDK. Have a look at look4color app in the store (ios/android), and check the performance of the list itemrenderers by yourself :) (I promise they're all simple MXML renderers even with bindings, no ultr

Re: Coding a better flex mobile app

2014-04-02 Thread After24
Hi Javier, To be honest I never tried to change the framerate of the application... I'm feeling a bit stupid now :-) Will try with an app on a Nexus S and a nexus 4. Thanks. -- View this message in context: http://apache-flex-users.246.n4.nabble.com/Coding-a-better-flex-mobile-app-tp5888p

Re: Coding a better flex mobile app

2014-04-02 Thread Javier Guerrero García
Exactly the way I felt the first time :) I mean, it's not THE silver bullet, and your opaqueBackground/cacheAsBitmap/etc... optimizations of course counts (hugely on low end devices), BUT ... you really can notice the difference :) Cheers :) On Wed, Apr 2, 2014 at 7:03 PM, After24 wrote: > Hi

Re: Coding a better flex mobile app

2014-04-02 Thread Alex Harui
Using a higher frame rate can increase your cpu utilization and potentially burn battery faster. You can change it at runtime for when you really need it Sent via the PANTECH Discover, an AT&T 4G LTE smartphone. Javier Guerrero García wrote: Exactly the way I felt the first time :) I mean, it

Re: Coding a better flex mobile app

2014-04-02 Thread Javier Guerrero García
Of course, Alex, what did you expected? Everything faster and smoother AND lower battery consumption? What else, free data downloading with unlimited bandwith too? :) Try with the /allowMiracles command line switch when compiling :) On Wed, Apr 2, 2014 at 8:09 PM, Alex Harui wrote: > Using a h

Re: Coding a better flex mobile app

2014-04-02 Thread jude
Does it use more CPU if you're not running any code? I mean a higher frame rate updates the display in the case of 30 fps to 60 fps 30 more times than normal but if the view doesn't change and no code needs to execute how much is really being used? Because, Flex has a invalidation for specific regi

RE: Coding a better flex mobile app

2014-04-02 Thread Alex Harui
users@flex.apache.org Subject: Re: Coding a better flex mobile app Does it use more CPU if you're not running any code? I mean a higher frame rate updates the display in the case of 30 fps to 60 fps 30 more times than normal but if the view doesn't change and no code needs to execute how much

RE: Coding a better flex mobile app

2014-04-07 Thread After24
Hello, So, following Javier advise regarding application framerate, I built a benchmark to show how framerate acts on list scrolling smoothness. May be I missed something (.apk and source code can be found here : https://issues.apache.org/jira/browse/FLEX-34213

Re: Coding a better flex mobile app

2014-04-07 Thread Javier Guerrero García
renderMode? cacheAsBitmap=true? use StyleableTextField? opaqueBackground=FF? autoDrawBackground=false? I said it was NOT the only thing: if your itemRenders are unable to go further than 24fps, you won't notice any changes. BUT if they are, and you don't set a higher framerate, you'll be stuck

RE: Coding a better flex mobile app

2014-04-07 Thread Maurice Amsellem
ere is one: http://vstyran-flex.ho.ua/FPSDisplayExample Maurice -Message d'origine- De : After24 [mailto:vinc...@after24.net] Envoyé : lundi 7 avril 2014 15:03 À : users@flex.apache.org Objet : RE: Coding a better flex mobile app Hello, So, following Javier advise regarding applic

Re: Coding a better flex mobile app

2014-04-07 Thread After24
Hi Javier, RenderMode is set to auto and the ItemRenderer used is the bundle LabelItemRenterer. The higher framerate I can get on a nexus 4 is 30-33 fps, this gain has little impact on the scrolling smoothness perception. Javier Guerrero García wrote > renderMode? cacheAsBitmap=true? use Styl

Re: Coding a better flex mobile app

2014-04-07 Thread Javier Guerrero García
Use rendermode direct, set cacheasbitmap=true in your renderers, set the opaquebackground to any color, disable autoDrawBackground, and use StyleableTextField as itemrenderer (it's harder, but faster :) On Mon, Apr 7, 2014 at 3:37 PM, After24 wrote: > Hi Javier, > > RenderMode is set to auto an

Re: Coding a better flex mobile app

2014-04-07 Thread Javier Guerrero García
:) wait until you enable caching and disable backgrounds ;) El lunes, 7 de abril de 2014, After24 escribió: > Javier, > > Setting renderMode to direct has a significant impact, scrolling fps is now > comprise between 40 and 46 fps. > I'm using The spark LabelItemRenderer which is based on Stylea

RE: Coding a better flex mobile app

2014-04-07 Thread After24
> vincent@ > ] > Envoyé : lundi 7 avril 2014 15:03 > À : > users@.apache > Objet : RE: Coding a better flex mobile app > > Hello, > > So, following Javier advise regarding application framerate, I built a > benchmark to show how framerate acts on list scrolling smo

Re: Coding a better flex mobile app

2014-04-07 Thread After24
Javier, Setting renderMode to direct has a significant impact, scrolling fps is now comprise between 40 and 46 fps. I'm using The spark LabelItemRenderer which is based on StyleableTextField for the label. -- View this message in context: http://apache-flex-users.246.n4.nabble.com/Coding-a

Re: Coding a better flex mobile app

2014-04-07 Thread After24
I don't understand is this not the already the case with the LabelItemRenderer ? (cacheAsBitmap is set to true in the constructor). Javier Guerrero García wrote > :) wait until you enable caching and disable backgrounds ;) > > El lunes, 7 de abril de 2014, After24 < > vincent@ > > escribió:

Re: Coding a better flex mobile app

2014-04-07 Thread Javier Guerrero García
Questioning.stop(); Trying.start(); ;) And you should use stagetext instead, but thats just my opinion ;) El lunes, 7 de abril de 2014, After24 escribió: > I don't understand is this not the already the case with the > LabelItemRenderer ? (cacheAsBitmap is set to true in the constructor). > >

Re: Coding a better flex mobile app

2014-04-07 Thread Javier Guerrero García
...and never use a 300k component to do a division ;) Set a counter On enterframe, counter++ Set a timer each 5 secs On timer tick, {fps=counter/5;reset counter} El lunes, 7 de abril de 2014, Javier Guerrero García escribió: > Questioning.stop(); > Trying.start(); > > ;) > > And you should use

Re: Coding a better flex mobile app

2014-04-07 Thread After24
You have a very single way to communicate, anyway... When you say : "wait until you enable caching and disable backgrounds ;) " are you talking about the cacheAsBitmap property ? if it's the case I'm just saying that this property is set to true in the constructor of the LabeItemRenderer. And wh

Re: Coding a better flex mobile app

2014-04-07 Thread Javier Guerrero García
I'm talking about: 1. NOT using labelitemrenderer, but StyleableTextField directly 2. Setting the opaqueBackground property to anything (btw, it's a uint color, not a boolean :) 3. Setting the autoDrawBackground to false 4. And yes, in the new custom itemrenderer, set cacheAsBitmap to true All of

RE: Coding a better flex mobile app

2014-04-07 Thread Maurice Amsellem
Yes, I missed it, it's in the utils package. Sorry. Maurice -Message d'origine- De : After24 [mailto:vinc...@after24.net] Envoyé : lundi 7 avril 2014 16:31 À : users@flex.apache.org Objet : RE: Coding a better flex mobile app Maurice, The app displays a framerate monitor b

Re: Coding a better flex mobile app

2014-04-08 Thread After24
I’m sorry Javier but I don’t understand your response, would you please be more specific. « NOT using labelitemrenderer, but StyleableTextField directly » What do you mean ? the LabelItemRenderer label is based on StyleableTextField. In fact I use this framework class because it’s written in AS3

Re: Coding a better flex mobile app

2014-04-08 Thread Javier Guerrero García
Ok, since you said "the list component never reaches 50/60 fps even when its itemRender is well optimized", I though the purpose was to reach the highest possible performance, not to study the different parameters. If so, your code is perfectly ok (expect for the assignment of a boolean to opaqueB