Message-Id: <3620B8C5.A02FBBC2@cableol.co.uk> Date: Sun, 11 Oct 1998 14:55:17 +0100 From: The Allens X-Mailer: Mozilla 4.04 [en] (Win95; I) Mime-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: vsync References: <6vp6lh$g71$2 AT otis DOT netspace DOT net DOT au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com Mark Tsui wrote: > > when I use vsync in my program, the maximum frame rate is only about 60 > frames per second. when I remove the vsync, the program runs at 3000 and > something frames per second, however, the graphics looked all flickered, how > do I solve this problem? > > Any help will be appreciated. Other messages have said what vsync does, but an easy message to stop it wasting time is to use tripple buffering, where you have three buffers, and when you are waiting for the vsync to blit buffer one on the screen, you can be drawing onto the third buffer. This should save some time when the program gets more complicated. Peter Allen