Flickering - already anwsered somehwere i'm sure, sorry

i am working on getting my game to behave nicley and only update the screen
where and when is nessecary, only touble is if the piece for my game is over
the timer part, the overlap is getting screen updated twice giving me a
flicker… therfore i need to make my main loop a bit better than wait for
getticks…

a few times i have seen various wait / update loops about the place… what do
people recomend as the best method for my main loop bit?

I don’t remember the exact commands but to eliminate flicker make sure
that…

A) You are using a double buffer
B) You are waiting for vsync to copy your back buffer to the screen

Hope this gives you a good starting point :/> ----- Original Message -----

From: sdl-bounces@lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On
Behalf Of neil at cloudsprinter.com
Sent: Thursday, October 04, 2007 4:18 AM
To: sdl at lists.libsdl.org
Subject: [SDL] flickering - already anwsered somehwere i’m sure, sorry

i am working on getting my game to behave nicley and only update the screen
where and when is nessecary, only touble is if the piece for my game is over
the timer part, the overlap is getting screen updated twice giving me a
flicker… therfore i need to make my main loop a bit better than wait for
getticks…

a few times i have seen various wait / update loops about the place… what
do
people recomend as the best method for my main loop bit?


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org