Need to refresh the display smoothly

Mar 13, 2015 at 3:42am
I'm trying to find some function within the <windows.h> library that refreshes the display smoothly. I have a little robot going around a room and i want it to refresh the display without it flickering. Anyone help?
Mar 13, 2015 at 3:45am
Assuming you place the "screen" per se into an array of char's, or something similar. Have you tried only updating the necessary tiles? Rather than flushing the entire screen out?
Mar 13, 2015 at 3:47am
Well, the way i have my 2-d array set up, it just displays the array every time the vacuum moves 1 block.
Mar 13, 2015 at 4:17am
Right, so each time the vacuum moves, only two updates need to be made; the block it moves to, and the block where it was at originally.
Mar 13, 2015 at 4:30am
yeah, but it isn't smooth when it runs in a while loop. The console screen flashes really fast. I want to minimize the flashing and have a smooth playback (or framerate).
Topic archived. No new replies allowed.