From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu Subject: Re: [9fans] Double buffering graphics From: rsc@plan9.bell-labs.com MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Thu, 30 May 2002 15:48:09 -0400 Topicbox-Message-UUID: a25c7a0e-eaca-11e9-9e20-41e7f4b1d025 That depends on exactly what you are trying to accomplish. If you want double buffering in the video memory itself, that will take some work (like a video memory allocator). One cheap way to do double buffering is to just allocate two images and then draw them onto the screen alternating between them. If all you want is for the user not to see intermediate images, you could just allocate one image, work there, and draw it to the screen whenever it is presentable. Writes from normal memory to video memory are very fast. The reverse operation is very slow (I've seen faster 5400rpm disks). Russ