Page 1 of 1

Visual effects delay...

Posted: Fri Dec 16, 2011 11:48 pm
by keithglong
Hi All,

I have a standalone (running under Windows 7) that has a problem... From the LiveCode IDE, everything works as expected. However, when I create a standalone .exe file and run it, there is a delay on the first screen when clicking on the Next button. The card transition is set to a "wipe left" visual effect. The problem is, when I load the program and click on the Next button for the first time, there is a long delay (almost 4 seconds), then the next card loads by wiping left. When I click on the Back button the speed is normal, and when I click on the Next button again, the speed is normal... The problem only occurs when I click on the Next button for the first time. (This looks very awkward and unprofessional.) I removed the visual effect and tried it, and the speed is normal. (So the problem obviously has something to do with using a visual effect.)

Any idea as to why this is the case? Again, it works as expected when running the stack in the LiveCode IDE...

Thanks,

- Boo

Re: Visual effects delay...

Posted: Sat Jan 07, 2012 12:54 am
by teacherguy
Similar problems, I associated mine with an audio clip. Couldn't find an acceptable workaround so I stopped using it (a clicking sound for the button).

On the visual side, I often see visual effect skipped the first time I make a transition. Then as you said it works as intended the next time.

~Brian

Re: Visual effects delay...

Posted: Sat Jan 07, 2012 1:16 am
by keithglong
Hi Brian,

At least for me, the problem was the loading and use of QuickTime on my Windows-based machine... I fixed the problem by including the following code in my stack script:

Code: Select all

on preOpenStack
  if the platform is "Win32" then set the dontUseQT to true
end preOpenStack
Cheers,

- Boo

Re: Visual effects delay...

Posted: Sat Jan 07, 2012 1:33 am
by teacherguy
Thanks Boo, I'm on the Mac...thinking I must have some redundancy somewhere, or my script before the visual is too long.

Re: Visual effects delay...

Posted: Mon Jan 09, 2012 4:32 am
by kdjanz
I seem to remember from back in the Hypercard days that people would do things to pre-cache the card so that transitions would work smoothly.

On opening the stack, you could lock the screen, then go to the second card without a transition, go back to the first card again and then unlock the screen. Having been to the second card once already might get rid of the delay.

Just memories from dinosaur days,

Kelly

Re: Visual effects delay...

Posted: Mon Jan 09, 2012 6:09 pm
by teacherguy
Worth a try, thanks

Re: Visual effects delay...

Posted: Fri Jan 13, 2012 7:27 am
by kdjanz
Did it help Teacherguy - just out of curiosity?

Kelly

Re: Visual effects delay...

Posted: Fri Jan 13, 2012 2:03 pm
by teacherguy
Got caught up in another issue, will try today!

Re: Visual effects delay...

Posted: Sat Jan 14, 2012 1:42 am
by teacherguy
Kelly it did not make a difference. However I decided to take out my lock/unlock screen commands and start fresh. When I took them out, oddly, I got got smooth visuals. Put them back in.... jerky visual again.

Re: Visual effects delay...

Posted: Sun Jan 15, 2012 1:20 pm
by teacherguy
Update:

Previously I had been:

locking the screen for visual effect
going to another card
making changes
unlocking the screen with the visual

This was not working smoothly, so now I am:

locking the screen
going to another card
making changes
going *back*
unlocking the screen
visual effect statement (i.e. "visual effect scroll down")
going to card where I made the changes

Working smoothly.