Well... im making some kind of graphic engine for console in c++, ASCII based, just for exercise...

anyways, i was wandering, can i print text faster? Right now i'm printing the whole map of characters (pix[160][120]) in a single line, so it is fast, however i need it faster cause the screen is flickering and it is realy annoying..
help please?

im kind of newbie to console input output streaming..

Edited 4 Years Ago by deluksic: n/a

The console isn't meant to support graphics engines. If you want graphics, get a graphics library where you can use tricks like double buffering to avoid the flicker effect. If you want to use ASCII art graphics, be prepared to suffer the limitations of the console. It's that simple.

The console isn't meant to support graphics engines. If you want graphics, get a graphics library where you can use tricks like double buffering to avoid the flicker effect. If you want to use ASCII art graphics, be prepared to suffer the limitations of the console. It's that simple.

Yes but i tried learning opengl and it is pain in the ass to make it work! i wanted to make my own ascii engine... for now i have suport for drawing circles, lines, rectangles even fill function like a bucket in paint! Also i included the window drawing and buttons.. its actually game engine... it has the step() function wich draws the screen all over again many times per second.. What were u saying about double buffering?

Edited 4 Years Ago by deluksic: n/a

Yes but i tried learning opengl and it is pain in the ass to make it work!

If you're going to give up as soon as it gets hard, then programming isn't for you.

What were u saying about double buffering?

Double Buffering.

No, i actually started learning it, but then i couldnt find opengl2.exe for 64-bit as in tutorial they were using 32-bit. I dont know what to do now. yes i tried google but didnt find anything that was refered to console apps.

You might try limiting the number of refreshes you do by using a timer. It won't make it look great, but it should eliminate the worst flickering. Perhaps 2 refreshes a second?

yes i tried google but didnt find anything that was refered to console apps.

Did you not read my first post?

This question has already been answered. Start a new discussion instead.