Talk:Double Buffering: Difference between revisions

(→‎C/C++ examples: new section)
 
(One intermediate revision by one other user not shown)
Line 11:
Is there really a need for two almost identical pieces of code just to show off reinterpret_cast and the new-operator? If you're writing an OS in C++, you should be familiar with these two anyway.
--[[User:Darkinsanity|Darkinsanity]] 19:17, 8 November 2014 (CST)
 
: Besides being redundant, it also makes the glaring error of using bits per pixel instead of bytes per pixel. I'll clean it up - [[User:Combuster|Combuster]] 04:37, 9 November 2014 (CST)
 
== Requesting an example for reading/modifying video memory using double buffering ==
 
The text mentions double buffering can be used for text scrolling, as an example. I am having trouble understanding how. If the front buffer is in video memory (slow) and the back buffer is in main memory (fast), and you need to read what is currently being displayed, how is that done without reading from video memory?
Anonymous user