Computer Science Canada

HUGE turing lag. PLZ help

Author:  Vertico [ Mon Apr 11, 2005 7:57 pm ]
Post subject:  HUGE turing lag. PLZ help

i have this program that i wrote out, i click run, it starts and i can play. It is a simple program that involves the user using the mouse to chase the oval around the screen. when you get the oval it disapears and you get 10 points.

well for some reason when i get the oval and it disapears , (goes to the edge of the screen so it can come back out) the game starts to lag and then the whole comp cant even move. just to move the mouse from the top of my screen to the start button takes 5 minutes.

it must be something with the program but im not sure why it makes so much lag for me. i end up having to restart my comp.

anyone know why??

Author:  Delos [ Mon Apr 11, 2005 8:20 pm ]
Post subject: 

1)
Hi.
2)
In the future, it would help if you posted some code w/ your question.
3)
When you do so, please be kind enough to use [code] tags. These will save people an eyestrain among other things.
Also, attaching a .t file instead of posting code can be a good idea especially when the text you're pasting is longer than say 15 lines or so.
4)
From your description, a vague diagnosis is that you don't have a delay in your loop. Or, if you do, it's one that's conditioned to the oval being on the screen.
It could be many other things, code would help.

Author:  marshymell0 [ Mon Apr 11, 2005 8:38 pm ]
Post subject: 

how do u compile ur file so that it is a .t file, like without the code? just the run?

Author:  Delos [ Mon Apr 11, 2005 8:48 pm ]
Post subject: 

Please make use of the tutorials section in the future.


: