home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / ibm / pc / hardware / 34473 < prev    next >
Encoding:
Text File  |  1992-12-30  |  1.6 KB  |  34 lines

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