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