🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rec.games.programmer
Article #304

Re: best graphics lib... and a other things

#304
From: JAMES E BENNETT
Date: Mon, 06 Apr 1992 16:23
29 lines
2567 bytes
In article <1992Apr3.092216.14918@zooid.guild.org>, ross@zooid.guild.org (Ross Ridge) writes:
>> 
>> SORROW%oak.decnet@pine.circa.ufl.edu writes:
>> >Pertaining to REP STOSD, on my video card ( Diamond SpeedStart/+ w/1MB
>> >and Tseng Et4000ax ), I get roughly a 20% speed increase over 
>> >REP STOSW.  Althought I shouldn't in theory, in practice it works
>> >beautifully.
>> 
>> ross@zooid.guild.org (Ross Ridge) writes:
>> >I'll have to give it a try myself.  I was suprised to get a 100%
>> >speed increase using REP STOSW over REP STOSB.  Everything I had
>> >read up to that point said I shouldn't.
>> 
>> dme21270@uxa.cso.uiuc.edu (David M. Erazmus) writes:
>> >If you're using a 16-bit video card on an AT bus then you SHOULD get a 100%
>> >speed increase due to the fact that you're moving twice as much memory in
>> >parallel as with the 8-bit instruction.
>> 
>> The problem is that not all 16-bit VGA cards are created equal, up until
>> about a year ago no VGA card supported 16-bit writes to graphics memory.
>> Well at least that's what an article in DJJ said.  

Well, all VGA cards support 16-bit CPU read/writes.  The video card just separates the access into 2 8-bit accesses.  What you can't do is do video to video moves because of the way 16-bit moves are brocken into 2 operations.  Any word access that requires a read(modify)write works rather weird.  Typically the high-byte (the one loaded last) is written to both the low- and high-byte of the destination word.  

If your just reading or writing to the video buffer (but not both in the same instruction) the 16-bit access should work properly for EGA and VGA cards.
 
   cs911477@ariel.yorku.ca
   James Bennett
Technical Details
Message-ID: <1992Apr6.162322.7260@newshub.ariel.yorku.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!news-server.csri.toronto.edu!helios.physics.utoronto.ca!ists!newshub.ccs.yorku.ca!newshub.ariel.yorku.ca!cs911477
References: <1992Mar17.093543.1@cc.newcastle.edu.au> <bl9j9e.7wv@wang.com> <1992Mar18.182654.13005@math.ufl.edu> <1992Mar23.012321.16160@zooid.guild.org> <1992Mar24.175028.18886@math.ufl.edu> <1992Mar30.173048.1893@zooid.guild.org> <1992Mar31.221046.16743@ux1.cso.uiu <1992Apr3.092216.14918@zooid.guild.org>

Show Full Headers
Complete Article Headers
Newsgroups: rec.games.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!news-server.csri.toronto.edu!helios.physics.utoronto.ca!ists!newshub.ccs.yorku.ca!newshub.ariel.yorku.ca!cs911477
From: cs911477@ariel.yorku.ca (JAMES E BENNETT)
Subject: Re: best graphics lib... and a other things
Message-ID: <1992Apr6.162322.7260@newshub.ariel.yorku.ca>
Originator: cs911477@t08.ariel.yorku.ca
Sender: news@newshub.ariel.yorku.ca (USENET News System)
Organization: York University, Toronto, Canada
References: <1992Mar17.093543.1@cc.newcastle.edu.au> <bl9j9e.7wv@wang.com> <1992Mar18.182654.13005@math.ufl.edu> <1992Mar23.012321.16160@zooid.guild.org> <1992Mar24.175028.18886@math.ufl.edu> <1992Mar30.173048.1893@zooid.guild.org> <1992Mar31.221046.16743@ux1.cso.uiu <1992Apr3.092216.14918@zooid.guild.org>
Distribution: york
Date: Mon, 6 Apr 1992 16:23:22 GMT