Next iOS question - why is my app so slow?

Mike Bonner bonnmike at gmail.com
Fri Feb 17 12:27:49 EST 2012


I believe the layermode (static, dynamic, scrolling) can be set before
build and will retain their state. Pretty sure the acceleratedrendering
must be set at runtime as you mention.


On Fri, Feb 17, 2012 at 10:24 AM, Graham Samuel <livfoss at mac.com> wrote:

> Chris, this is fantastic! Despite years of LC/Rev scripting, I had never
> heard of either of the properties you mention, and now I've read a bit more
> about them I really don't understand them much - presumably there must be a
> payoff between using "static" and "dynamic" layerModes, or the engine would
> just opt for "dynamic" all the time. Anyway changing these (at run time -
> they apparently can't be stored as states within one's stack file) has made
> a lot of difference to the snappiness of my app. I have a lot of images
> which the user or the program can move - some are families of images
> representing different states of an object. There are probably about 100
> all told, although only about 10 are visible at any one time.
>
> Anyway I set the acceleratedRendering and the layerMode of all the moving
> bits, and things look a great deal better.
>
> As a slight excuse, I find that these properties are described but not
> fully explained in the LC Dictionary and are not mentioned at all in the
> User Guide or the IOS Deployment Notes, so it is not that surprising that I
> have never come across them.
>
> Thanks again
>
> Graham
>
> On Fri, 17 Feb 2012 08:21:54 -0700, Chris Sheffield <cmsheffield at me.com>
> wrote:
> > Without seeing any code, I would advise looking at the
> acceleratedRendering and layerMode properties if you haven't already. These
> might make a difference when moving objects. Honestly, though, I'm not sure
> if they apply to dragging or not. I haven't personally done anything like
> that. Maybe someone else can chime in...
> >
> > --
> > Chris Sheffield
> > Read Naturally, Inc.
> > www.readnaturally.com
> >
> > On Feb 17, 2012, at 6:34 AM, Graham Samuel wrote:
> >
> >> Well, I was fleetingly pleased with myself that I got my first iOS app
> installed and running on my iPad 2. It didn't last. The thing runs as
> though wading through glue - MUCH slower than on my Mac (a not particularly
> new MacBook) and even slower even than on the simulator. The amount of
> scripting in the app is limited, but you can see it thinking, so that for
> example I have a bit of code that puts an image in a particular exact place
> if the user has dragged sufficiently near to the final position (i.e. a
> snap-to-position process). This is instantaneous on the Mac but takes well
> over half a second on the iPad. And even recognising a touch before
> dragging an image appears to take a measurable time. This isn't at all like
> any of the commercial apps I have.
> >>
> >> I only have a 'personal' licence. Is the engine spiked, or am I doing
> something wrong, or what? Has anyone any experience to share?
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list