Computer Science Canada Flickering Screen |
Author: | Jas [ Sat May 14, 2005 5:11 pm ] | ||
Post subject: | Flickering Screen | ||
I am using the cls command in a loop, and evertime it goes through the loop, it makes the screen flicker. Here is my program:
First i had to get past the GUI.ProcessEvent problem, and when i did that, i got the flickering screen problem. GUI.Refresh helped, but the screen still flickered a little. is there a way to prevent this? (These are not my actual procedures, because my real ones are too long and involve inputting data files) |
Author: | Delos [ Sat May 14, 2005 5:56 pm ] |
Post subject: | |
Look for and read the tutorial dealing with View.Update() and 'offscreenonly'. |
Author: | Jas [ Sat May 14, 2005 9:07 pm ] |
Post subject: | |
i tried looking for the tutorial using the search option at the top, but all i got was programs from other users which had "setscreen("offscreenonly") and View.Update commands in them. I couldn't find a tutorial on it. can u tell me where the totorial is, if there is any? |
Author: | Cervantes [ Sun May 15, 2005 7:43 am ] |
Post subject: | |
http://www.compsci.ca/v2/viewtopic.php?t=193 http://www.compsci.ca/v2/viewtopic.php?t=3077 It's really easy. Just set it to offscreenonly, then View.Update after you've drawn everything in your main loop. Be careful, though. You don't want to have more than one View.Update, as that totally defeats the purpose. (And it slows the program down!) |