I'm messing around with game loops and going to create some games as practice.
Currently I have a steady game loop up where the game is updated as fast as possible and the rendering is updated x times a second (25 currently)
The rendinging method is basically a draw + Console.Clear() and at very high updates the display becomes very jittery since it's not finished drawing when Console.Clear() hits.
Is there a better way of doing something like this?
Can I write whatever data to the console and then replace it with some other data?
Assuming you Write a full screen from topleft again in every loop you could simply replace the Clear() with:
Console.SetCursorPosition(0, 0);
And overwrite the previous screen.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With