🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rec.games.programmer
Article #488

Re: Vertical Retrace interrupt?

#488
From: Dave Stampe-Psy+Eng
Date: Fri, 07 Aug 1992 15:22
23 lines
1824 bytes
In article <4284@news.duke.edu> kds@phy.duke.edu (Stokes Kevin) writes:
>  I think the original posting was about the user of the VGA Card's hardware
>interrupt, not the timer chip.  The timer chip wouldn't stay in phase with the
>video retrace, and therefore wouldn't help.

Actually, you can do this.  If you look at the source code for REND386
(FTP from sunee.uwaterloo.ca) you see a method.  I find the time period of 
the vertical frame, then set the timer up to be some small amount (i.e
200 uS) shorter.  You sync the timer with the vertical retrace by reloading
it, then wait 5 frames and repeat.  The total delay at each resync is 
about 500 uS, and that is the maximum drift too.  Works fine with Sega
glasses.  Only drawback: you must keep interrupt disables shorter than 300 uS
or so, else the glasses start showing banding at the bottom of the screen.
Of course, this would happen with the vertical interrupt as well.



--------------------------------------------------------------------------
| My life is Hardware,                    |                              | 
| my destiny is Software,                 |         Dave Stampe          |
| my CPU is Wetware...                    |                              | 
| Anybody got a SDB I can borrow?         | dstamp@watserv1.uwaterloo.ca |
__________________________________________________________________________
Technical Details
Message-ID: <BsMDDK.1y0@watserv1.uwaterloo.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!torn!watserv2.uwaterloo.ca!watserv1!dstamp
References: <1992Aug3.210504.57823@cc.usu.edu> <4284@news.duke.edu>

Show Full Headers
Complete Article Headers
Newsgroups: rec.games.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!torn!watserv2.uwaterloo.ca!watserv1!dstamp
From: dstamp@watserv1.uwaterloo.ca (Dave Stampe-Psy+Eng)
Subject: Re: Vertical Retrace interrupt?
Message-ID: <BsMDDK.1y0@watserv1.uwaterloo.ca>
Organization: University of Waterloo
References: <1992Aug3.210504.57823@cc.usu.edu> <4284@news.duke.edu>
Date: Fri, 7 Aug 1992 15:22:31 GMT
Lines: 24