Dissolve/Transitions Very Costly

Tore Nilsen tore.nilsen at me.com
Sat Dec 30 18:41:35 EST 2017


It may also help to lock the screen for visual effect within a given rectangle, thereby reducing the number of pixels that need to be updated. If the images are of equal dimensions and with the same loc, you can refer to the rect of one of them, otherwise you can have an invisible graphic as reference or just the local screen coordinates where you would like the effect to take place, like this:

lock screen for visual effect in rect(rect of image “test1”) — or the direct coordinates as param (200,200,500,400)
hide image “test1”
show image “test2”
unlock screen with visual effect dissolve very fast


Regards
Tore Nilsen

> 30. des. 2017 kl. 23:06 skrev Sannyasin Brahmanathaswami via use-livecode <use-livecode at lists.runrev.com>:
> 
> So: if the effectRate defaults to 2000 (which is what I'm seeing here on desktop) and you have
> ------
> Show image "grand-canyon" with visual effect dissolve very fast
> -------
> # theoretically 1/5 of 2000 = 400 milliseconds
> 
> why is the script profiler saying this line takes 4765 milliseconds top execute?
> 
> The dictionary has two methods: if you look up "show" it appears you should be able to perform this "directly"
> 
> But, under the visual effect command the suggested method is to lock screen, make the change then unlock the screen with visual effect.  And we get different results, various conditions where the effect just does not happen anyway…no fadein as expected… there is a delay… screen is "stuck" and suddenly the image changes.
> 
> hopefully this all improves very soon as CSS Animation which is fast and smooth… now dominates UI everywhere, even for small inconsequential UX ops… designers are expect all kinds of "oozing" warp,slide,fade away etc.
> 
> Frankly I'm sure users care that much, and if you have a very strong content component, it's a lot more compelling than having your address book "zip up" when you close it.  And what I'm here is that the most important thing is stability and performance. So, I may just remove all these dissolves.
> 
> 
> Richard wrote:
> 
>    Effect durations can be normalized and fine-tuned using the effectRate 
>    global property.
> 
> 
> 
> _______________________________________________
> 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