I have implemented your suggestion but without taking timings not sure if it 
has made a major difference over and above lock messages but any improvement is 
good.


Thanks

Terry

> On 10 Mar 2015, at 22:28, Brahmanathaswami <bra...@hindu.org> wrote:
> 
> Years ago Scott Raney once suggested to me that for resizing images: make 
> sure your code is not using  a ratio algorithm  that resets in a loop, in 
> succession, the height and width.
> 
> Instead, use an algorithm that changes the complete rect values with all 4 
> params and then the screen update for the change in size is 1/2 the time or 
> even orders of magnitude faster... I haven't tested this in a long time 
> though...
> 
> i.e. if you a drag window, do not do this kind of thing:
> 
> set the width of image Y to [whatever]
> set the height of image Y tto [whatever]
> 
> instead get your values ahead of time
> then do this
> 
> ## pseudo code
> 
> put x into width
> put y into height
> 
> set the rect of img "house" to (0,0,x,y)
> 
> might help... but yes, we really need smoother animation at all levels of LC.
> 
> Swasti Astu, Be Well!
> Brahmanathaswami
> 
> Kauai's Hindu Monastery
> www.HimalayanAcademy.com
> 

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to