FrenkelS / doomtd3

Stripped down version of Doom (Doom8088) for only running timedemo 3
GNU General Public License v2.0
7 stars 2 forks source link

Implement page flipping / double buffering #1

Open FrenkelS opened 5 months ago

FrenkelS commented 5 months ago

The Macintosh Plus has two screen buffers, so it's possible to use page flipping / double buffering. See http://www.mac.linux-m68k.org/devel/plushw.php

How can this be accomplished in Retro68? "If you want to use the alternate screen buffer, you'll have to specify this to the Segment Loader"

Also, how can this be done in C? "To switch to the alternate screen buffer, clear the following bit of VIA data register A (vBase+vBufA): vPage2 .EQU 6 ;0 = alternate screen buffer

For example: BCLR #vPage2,vBase+vBufA

To switch back to the main buffer, set the same bit."

FrenkelS commented 4 months ago

http://preserve.mactech.com/articles/mactech/Vol.01/01.09/ScreenBuffer/index.html http://preserve.mactech.com/articles/mactech/Vol.02/02.06/VideoScreenAnim/index.html http://preserve.mactech.com/articles/mactech/Vol.03/03.08/Starflight/index.html