Re:Game Programming Patterns: Double Buffer (2014)
by mpweiher on Monday August 27, 2018 @09:56AM
(#17851487)
> draw into a separate piece of memory and then copy that memory into the video memory
While the Apple ][ had no graphics hardware to speak of, it did have two graphics buffers that you could switch between.
So you would draw into the non-displayed buffer and switch to that.
If you had installed the vertical-blank mod, you could even do that without tearing. (I think the //e came with that).
It was actually important from another aspect: the video memory was not contiguous. IIRC, it was divided in 3. So the first row was the first scan line, the second row was 1/3 the way down the page and the third row was 2/3 down the page. In order to compose graphics on the screen, you'd have to have this weird algorithm for drawing into memory. Compositing right in the video memory would have resulted in lots of timing problems.