Jump to content

Question About Vertical Synchronization


Recommended Posts

Hi folks, I'm writing a game and the initial calculations take more than one frame. Normally I would split the procedure in 2 parts, but I'm wondering whether it can be avoided by simply truning off the screen by writing into VBLANK register and forcing VSYNC after the calculations are done. What I want to avoid is flickering that may cause some problems on different displays

Link to comment
Share on other sites

  • 4 weeks later...
On 10/16/2021 at 12:59 PM, Thomas Jentzsch said:

Yes, you can do that. Did that in my own games Jmmed and The Stacks (WIP).


But you need more than one frame for VSYNC. CRTs cannot sync that fast.

 Oh man.  It was a lot of work for a first timer like me to break up the hand scoring routines in Cribbage Squares so that no single chunk took too long, no matter the hand complexity.  I wish I knew this then, I would have happily turned off the screen for a moment ?

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.

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.

  • Recently Browsing   0 members

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