Jump to content
IGNORED

Plot and Flickering in Action!


Recommended Posts

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 by ivop
  • Like 1
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...