Computer Science Canada lagging program |
Author: | bvbjules13 [ Tue Jan 08, 2013 10:16 am ] | ||||
Post subject: | lagging program | ||||
What is it you are trying to achieve? i am trying to do an animation What is the problem you are having? for some reason when i run the animation, the program delays after i finish the animation and i do not have a delay being used
i seem to have a lag after the end of music, when i start the next animation the program seems to wait then do the next animation, the procedure EndMusic consists of:
Please specify what version of Turing you are using 4.1 |
Author: | Insectoid [ Tue Jan 08, 2013 3:20 pm ] | ||
Post subject: | RE:lagging program | ||
What do you mean, it delays? There's nothing in your code to cause this. The issue is likely somewhere else in your code (immediately following this for loop, I suspect). Also,
Unless you're doing something really funky in your sound processes, this is equivalent to calling Music.PlayFileStop on its own. You're setting finished to true, and then false again before anything else can look at it. |
Author: | Tony [ Tue Jan 08, 2013 3:26 pm ] |
Post subject: | RE:lagging program |
Delays could also be caused by long loops and not refreshing the screen with View.Update (that is, stuff is still happening in the background, just nothing gets drawn to screen). |