iOS: performance issues with visual effects
Andrew Henshaw
henshaw at me.com
Tue Jan 17 16:32:11 EST 2012
Have you tried firing it off touchstart instead of touchend or mouseup. I find that gains a little performance.
On 17 Jan 2012, at 21:14, William de Smet wrote:
> Hi Chris,
>
> I am experiencing the same thing (iPad 1) here with LC 5.02.
>
> I just use:
> visual effect push left
> go cd "start"
>
> There is no delay in the IDE but there is with an compiled app on iOS 5.
> Sadly I don't have an solution :-( .........
>
>
> groeten,
>
> William
>
>
>
> 2012/1/17 Chris Sheffield <cmsheffield at me.com>
>>
>> Working on an iPad app that uses visual effects in a few places to make things a little more pleasing for the user. But I'm noticing some strange lags between the time I tap and the time the effect actually happens.
>>
>> For example, in one place I have a text field set up with several different "links". The user taps a link, and then a "window" pops up to show a definition of the tapped word and play an audio file. When I show/hide the "window" I'm using a dissolve visual effect:
>>
>> show/hide group "window" with visual effect dissolve very fast
>>
>> The effect happens, but sometimes there is a 2 or 3 second delay between the tap on the screen and the change on the screen. There is some code that runs inside a linkClicked handler before the group is shown, but nothing that should take that long. And if I remove the visual effect, the "window" displays almost instantly. Something is occurring as part of displaying the visual effect that is taking longer than expected.
>>
>> So the question is, is there anything I can do to improve this? I've already set the layerMode to "dynamic" where appropriate, but this doesn't seem to make much difference in this case. Maybe I haven't set the property on the correct objects? Some visual effects seem to work just fine, like the basic push and reveal effects. But I have also noticed this somewhat with the curl effects. Has anyone else experienced this? Any suggestions to improve performance?
>>
>> Currently working on an iPad 1, btw.
>>
>> Thanks,
>> Chris
>>
>> --
>> Chris Sheffield
>> Read Naturally, Inc.
>> www.readnaturally.com
>>
>>
>> _______________________________________________
>> 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
>
> _______________________________________________
> 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