home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / rec / games / programm / 4797 < prev    next >
Encoding:
Internet Message Format  |  1992-11-22  |  1.1 KB

  1. Path: sparky!uunet!cs.utexas.edu!hellgate.utah.edu!cc.usu.edu!sl8nl
  2. From: sl8nl@cc.usu.edu
  3. Newsgroups: rec.games.programmer
  4. Subject: Re: Cleanly Switching Video Modes
  5. Message-ID: <1992Nov22.182125.61160@cc.usu.edu>
  6. Date: 22 Nov 92 18:21:24 MDT
  7. References: <62430022@acf3.NYU.EDU>
  8. Organization: Utah State University
  9. Lines: 21
  10.  
  11. > I notice that everytime my code switches video modes (for example,
  12. > using Abrash's mode set code to switch to Mode X) my monitor 
  13. > crackles and clicks loudly.  Now, I know that this is something
  14. > that multisync monitors do when switching video modes, but I don't
  15. > think that I have ever seen a commercial game cause this.  Is
  16. > there some way to temporarily disable the screen during the actual
  17. > mode switch?  Or anyway to "cleanly" switch modes?  (Especially
  18. > in and out of Mode X.)
  19.  
  20. There are a few different methods.  The one I use most for my games and demos
  21. is as follows.
  22.  
  23. 1) CLI.
  24. 2) Wait for vertical retrace.
  25. 3) Clear the palette to black through means of ports 3C8h and 3C9h.
  26. 4) Wait for vertical retrace.
  27. 5) STI.
  28. 6) Set new mode.
  29.  
  30. -Joshua Jensen
  31.  
  32.