i do the same method, however my fps seems to be capped at 66 which sounds
alot like the refresh rate of my monitor or maybe from vsync.
anyone know why its capped at 66 and how to get around that at all?> ----- Original Message -----
From: stpohle@gmx.net (Steffen Pohle)
To:
Sent: Monday, January 19, 2004 1:54 PM
Subject: Re: [SDL] Time based movementOn Mon, 19 Jan 2004 17:18:26 -0200 “Bruce @ OpenGL” wrote:
You meant that doing sleep at the end of loop is better? Was it you
said ?hmm no i said that i use the movement += (speed * timediff)… but at the
end of the loop i still wait some time so that i can come down with the
cpu usage… because in my game i don’t need 150fps… i just want to have
50 nice frames per second thats enough. So if i have at the end of the
loop some time left i sleep.bye bye
Steffen–
Steffen Pohle (stpohle at gmx.net)| _ x
http://stpohle.bei.t-online.de | /#/ BomberClone - The Clone of
JabberID: stpohle at amessage.de ||###| DynaBlaster and Bomberman
ICQ: 370965 Yahoo: stpohle | #/ http://www.bomberclone.de
MSN: stpohle at hotmail.com |
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl