From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu From: "Douglas A. Gwyn" Message-ID: <3D0422D9.27B803EE@null.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit References: <93060660658860b6a268b7d4407047ce@acl.lanl.gov> Subject: Re: [9fans] Double buffering graphics Date: Mon, 10 Jun 2002 10:02:26 +0000 Topicbox-Message-UUID: a7f2ec3c-eaca-11e9-9e20-41e7f4b1d025 > > Be sure to switch during the vertical retrace interval, > > to avoid yucky visual artifacts. andrey mirtchovski wrote: > who should take care of that? the drawing library (i.e. draw()), the > software or the driver? If you're really fortunate, the graphics hardware was designed to help in this frame synchronization. Just how you do it depends on the graphics subsystem (software and hardware) architecture and capabilities. As to who "should" take care of it, it "should" be whoever is in the best position to detect the VRI onset, perhaps an interrupt handler (which would simply switch buffer pointers).