Visual effects delay...

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
keithglong
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 348
Joined: Sun Jul 03, 2011 2:04 am
Location: Gulf Breeze, Florida

Visual effects delay...

Post by keithglong » Fri Dec 16, 2011 11:48 pm

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

teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: Visual effects delay...

Post by teacherguy » Sat Jan 07, 2012 12:54 am

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

keithglong
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 348
Joined: Sun Jul 03, 2011 2:04 am
Location: Gulf Breeze, Florida

Re: Visual effects delay...

Post by keithglong » Sat Jan 07, 2012 1:16 am

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

teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: Visual effects delay...

Post by teacherguy » Sat Jan 07, 2012 1:33 am

Thanks Boo, I'm on the Mac...thinking I must have some redundancy somewhere, or my script before the visual is too long.

kdjanz
Posts: 300
Joined: Fri Dec 09, 2011 12:12 pm
Location: Fort Saskatchewan, AB Canada

Re: Visual effects delay...

Post by kdjanz » Mon Jan 09, 2012 4:32 am

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

teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: Visual effects delay...

Post by teacherguy » Mon Jan 09, 2012 6:09 pm

Worth a try, thanks

kdjanz
Posts: 300
Joined: Fri Dec 09, 2011 12:12 pm
Location: Fort Saskatchewan, AB Canada

Re: Visual effects delay...

Post by kdjanz » Fri Jan 13, 2012 7:27 am

Did it help Teacherguy - just out of curiosity?

Kelly

teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: Visual effects delay...

Post by teacherguy » Fri Jan 13, 2012 2:03 pm

Got caught up in another issue, will try today!

teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: Visual effects delay...

Post by teacherguy » Sat Jan 14, 2012 1:42 am

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.

teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: Visual effects delay...

Post by teacherguy » Sun Jan 15, 2012 1:20 pm

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.

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”