Visual effects delay...
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- VIP Livecode Opensource Backer
- Posts: 348
- Joined: Sun Jul 03, 2011 2:04 am
- Location: Gulf Breeze, Florida
Visual effects delay...
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
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
-
- Posts: 379
- Joined: Thu Dec 08, 2011 2:43 am
Re: Visual effects delay...
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
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
-
- VIP Livecode Opensource Backer
- Posts: 348
- Joined: Sun Jul 03, 2011 2:04 am
- Location: Gulf Breeze, Florida
Re: Visual effects delay...
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:
Cheers,
- Boo
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
- Boo
-
- Posts: 379
- Joined: Thu Dec 08, 2011 2:43 am
Re: Visual effects delay...
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...
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
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
-
- Posts: 379
- Joined: Thu Dec 08, 2011 2:43 am
Re: Visual effects delay...
Worth a try, thanks
Re: Visual effects delay...
Did it help Teacherguy - just out of curiosity?
Kelly
Kelly
-
- Posts: 379
- Joined: Thu Dec 08, 2011 2:43 am
Re: Visual effects delay...
Got caught up in another issue, will try today!
-
- Posts: 379
- Joined: Thu Dec 08, 2011 2:43 am
Re: Visual effects delay...
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.
-
- Posts: 379
- Joined: Thu Dec 08, 2011 2:43 am
Re: Visual effects delay...
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.
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.