Message-ID: From: Shawn Hargreaves To: djgpp AT delorie DOT com Subject: Re: vsync() Date: Wed, 15 Dec 1999 13:04:00 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Reply-To: djgpp AT delorie DOT com zack97 AT localnet DOT com writes: > This is probably a really dumb question, but can I go without the > vsync(); (in allegro) if my game will run very fast? Sure, you don't have to call vsync() if you don't want to! The point of doing it is to synchronise your drawing with the monitor retrace, which can help to avoid tearing artifacts while the screen is updated, but depending on how your updating is done that might or might not be a problem. Ideally you should make it configurable, so the user can tweak it to whatever settings look best on their hardware. > Cause I'm making a game and it runs at 1000+ fps without the vsync > and it runs at like 50 with the vsync...I know 50 is still ok, but > I'm not done yet..... A vsync() waits for the monitor refresh, which is a fixed frequency, so of course it won't let your program run any faster than the refresh. But there is no point in doing that in any case: rendering 1000+ fps is pointless because your monitor can't physically display that many, and there is no point bothering to draw frames that won't ever be displayed... Shawn Hargreaves.