I am trying to overcome the limitations we face with Mobile where our
transitions are Limited to for example on IOS only flip there is no dissolve or
anything like that.
So I am using the blend level of the object or an image in setting this up or
down to try and emulate fade in and fadeout effect but we are getting very poor
performance. Works OK on desktop.
it seems also have to have to do with the size of the object for example you
can fade in and out. A small object did not see too much of a CPU hit but if
you fade in and out an 1200 x 900 pixel Image then on the iPhone it can be very
slow even if you have each repeat set to just a few milliseconds… it still
takes several secondes to compelte.
I am using the following handlers if anyone has any ideas about optimizing
this I would be very interested. I think probably there's no way to do better
and these repeat loops that are forcing the screen to update the entire pixel
map are probably always going to perform very badly and I may need to just
abandon this effect.
command revealWithBlendLevel, pSpeed,pIterations
repeat pIterations times
set the blendlevel of control gCurrentHiddenControl to pIterations
subtract 1 from pIterations
wait pSpeed milliseconds
end repeat
end revealWithBlendLevel
on fadeInObject pLevel
put 1 into tIncr
repeat pLevel times
set the blendlevel of image 1 to tIncr
add 1 to tIncr
wait 10 milliseconds
end repeat
end fadeInObject
command fadeOutCurrentControl pSpeed
put (the blendlevel of control gCurrentShowingControl) +1 into tLevel
set the blendlevel of control gCurrentShowingControl to tLevel
if tLevel < 100 then
send fadeOutCurrentControl to this stack in pSpeed ticks
else
lastRevealDone
end if
end fadeOutCurrentControl
BR
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode