🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rec.games.programmer
Article #702

IBM VGA ModeX PutBlt

#702
From: John A. Slagel
Date: Mon, 14 Sep 1992 19:23
43 lines
2584 bytes
   I recently mentioned some fairly fast ModeX,Y whatever routines
   and send that I would send them to you or post them if I got more
   than 10 replies.

   I have gotten MUCH MUCH more than 10 replies, so here's what I'll
   do:

   1. I don't have the time to e-mail people individual copies.
   2. The routines will take up some bandwidth on the news file...
      Maybe I'll put them at an FTP site, if anyone thinks I should.
       However, I don't know how, so e-mail me if you know for sure.
   3. I am going to clean up the routines, comment them so people can use
      them, and provide a nice demo, and post them hopefully by the end
      of the week. 

    To answer people's questions:
     -These routines with a few modifications will work with 320x200,
       360x400, 320x400-- All the tweaked video modes. 
     -I have code is MASM, and use Microsoft Quick C.
     -These routines are fast because I "unroll" the bitmap into groups
      of four so that I only change the plane 4 times, so thats only about
      4 outs per bitmap instead of 1 out per pixel. 
     -I also use 386 specific commands.
     -The routines do provide for some pretty basic, pretty fast collision
      detection.
     -I use Michel Abrash's ModeX code to set the video mode, switch pages
      etc.

    My pondering: The routines the Michel Abrash use's to copy from
    display memory to display memory might be faster than mine. I haven't
    used them.  I don't like them because you're limited by the number
    of figures and its kind of messy having to keep stuff in display
    memory. But, they might be faster, so if you're using 'em now,
    and happy, maybe you can use mine and compare.

    I do know one thing: Large bitmaps that can't fit into unused video
    memory should be faster with only 4 outs per bitmsp.          

-- 
------------------------------------------------------------------------
 John A. Slagel     "My old man used to tell me, before he left this
 j-slagel1@uiuc.edu  shitty world, never chase buses or women- you
                     always get left behind." -The Marlboro Man
Technical Details
Message-ID: <BuL1vL.CGz@news.cso.uiuc.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uxa.cso.uiuc.edu!jas37876

Show Full Headers
Complete Article Headers
Newsgroups: rec.games.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uxa.cso.uiuc.edu!jas37876
From: jas37876@uxa.cso.uiuc.edu (John A. Slagel)
Subject: IBM VGA ModeX PutBlt
Message-ID: <BuL1vL.CGz@news.cso.uiuc.edu>
Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
Organization: University of Illinois at Urbana
Date: Mon, 14 Sep 1992 19:23:44 GMT
Lines: 43