Hi,
I need to animate something in a C++ console application (it's a class assignment.) Right now I just print out all the frames back to back as quickly as possible, but it has two issues:
1 - Several "frames" end up being visible half drawn (I suppose we can call it a "screen tear".)
2 - The "frames" go by much too quickly on some (most) computers.
What would be the best way of pacing in a C++ console application? I want it to be cross platform and not waste system resources (IE, locking the entire computer up during the animation would be undesirable.)
I need to animate something in a C++ console application (it's a class assignment.) Right now I just print out all the frames back to back as quickly as possible, but it has two issues:
1 - Several "frames" end up being visible half drawn (I suppose we can call it a "screen tear".)
2 - The "frames" go by much too quickly on some (most) computers.
What would be the best way of pacing in a C++ console application? I want it to be cross platform and not waste system resources (IE, locking the entire computer up during the animation would be undesirable.)