home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.ibm.pc.hardware
- Path: sparky!uunet!spool.mu.edu!agate!ames!ncar!noao!stsci!stosc!speck
- From: speck@stsci.edu
- Subject: HELP: How to detect VGA in vertical retrace
- Message-ID: <1992Dec30.154836.1@stsci.edu>
- Lines: 22
- Sender: news@stsci.edu
- Organization: Space Telescope Science Institute
- Distribution: na
- Date: Wed, 30 Dec 1992 20:48:36 GMT
-
-
-
- I'm doing some graphics programming in quick-BASIC, and I have a question.
- I have a bunch of ray-traced images that I want to display, to provide
- animation. I want to load entire screens consecutively, as rapidly as possible.
- I have a VGA monitor but only 256K of video RAM. My machine is a 386SX
- running at 16 MHz. For now, what I do is create about a 3 meg RAMDISK, then
- copy all of my image files onto the disk. Then, from the RAMDISK, I run
- a program which essentially BLOADS (BASIC command) each of the images into
- video ram, one after the other. I find BLOAD to be MUCH faster than GET
- and PUT. However, I get strange effects on the screen, such as "refresh"
- "lines" that move up and down the screen. I asked someone about this, and
- they said that I was writing my images to screen when the monitor was in
- vertical retrace mode. This person said I had to find a way to make sure
- my monitor WAS NOT in this retrace mode. If I BLOAD an image at such a time,
- the "beating" effects between the BLOAD's and the screen retraces would be
- eliminated. Does anyone know of how to write a BASIC program that checks
- the appropriate bits/bytes as to whether the screen is in vertical retrace
- or not? Any other suggestions? Thanks in advance.
-
- Scott in Baltimore.
-
-