Article View: rec.games.programmer
Article #1697Re: Cleanly Switching Video Modes
From: sl8nl
Date: Mon, 23 Nov 1992 00:21
Date: Mon, 23 Nov 1992 00:21
20 lines
1121 bytes
1121 bytes
> 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
Technical Details
Message-ID:
<1992Nov22.182125.61160@cc.usu.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!hellgate.utah.edu!cc.usu.edu!sl8nlReferences:
<62430022@acf3.NYU.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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