Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

sync printing with refresh rate

Name: Anonymous 2012-02-07 14:57

I'd like to make a game in C that runs in a terminal/fb console. How can I get the screen to update only once for each time the screen refreshes?

Name: Anonymous 2012-02-07 15:26

Anybody? I'd prefer not to use ncurses, but if you know of a way specific to curses that's okay too.

Name: Anonymous 2012-02-07 15:40

I'm surprised that a terminal game would need to refresh as often as 60fps or so... But seriously, don't bother matching the refresh rate and make your game independent of refresh rate/CPU speed.

If you really want to, you can get the refresh rate by querying X.org.

Name: Anonymous 2012-02-07 16:50

>>3
X.org
products named after websites=full retard

Name: Anonymous 2012-02-07 17:00

>>3
Thanks, but I'm looking for specific code that I could adapt to make the screen print at a desired framerate. Doesn't need to be the full refresh rate, but I need to be able to print to the screen in a way that won't cause flickering.

Name: Anonymous 2012-02-07 17:54

>>5
System("echo OP is a factor")

Name: Anonymous 2012-02-07 18:02

>>5
Just use ncurses already. The flickering is caused by the printing itself. ncurses can optimize it.

Name: VIPPER 2012-02-07 18:05

>>4
X is older than the "web" i believe.

Name: Anonymous 2012-02-07 19:09

>>8
VIPPER you are not allowed to contribute to this board. You are upsetting the balance.

Name: Anonymous 2012-02-07 20:38

>>11
nice dubs

Name: Anonymous 2012-02-07 20:59

>>10
Thanks, bro.

Name: Anonymous 2012-02-07 21:03

>>7
How does one optimize the flickering in ncurses?

Name: Anonymous 2012-02-07 21:08

>fb console

FaceBook console? IPO? Sign me up!!!

Name: Anonymous 2012-02-08 3:29

why are you faggots typing X when OP said term.
OP: READ THE SOURCE TO BSDGAMES

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List