ivop Posted November 22, 2020 Share Posted November 22, 2020 (edited) What you call two display memories, is more generally called double buffering and page flipping. With this method, at the end of clearing and drawing your buffer, you are always waiting for a vertical blank, which wastes precious cycles. There's also triple buffering. Start with all buffers clear. Buffer 1 is displayed, buffer 3 is cleared, buffer 2 is drawn to, when done do not wait for vblank but start drawing to buffer 3, at vblank flip to buffer 2. Buffer 2 is displayed, buffer 1 is cleared, buffer 3 is drawn to, when done do not wait for vblank but start drawing to buffer 1, at vblank flip to buffer 3. Buffer 3 is diaplayed, buffer 2 is cleared, buffer 1 is drawn to, when done do not wait for vblank but start drawing to buffer 2, at vblank flip to buffer 1. Repeat. Edit: This way you are never unnecessarily waiting for a vertical blank. Edited November 22, 2020 by ivop 1 Quote Link to comment Share on other sites More sharing options...
777ismyname Posted November 26, 2020 Share Posted November 26, 2020 There is an alternative and faster graphics library (at least partial library), but I’m having trouble locating it at the moment; someone liked the laptop that I had most of my stuff on more than I dude This and similar articles are up at AtariWiki that may help >>> https://atariwiki.org/wiki/Wiki.jsp?page=Fast Screen IO Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.