Computer Graphics

Moderators: Sephiroth
Number of threads: 1243
Number of posts: 2643

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Edit Report
Need help with bank switching Posted by David Crockett on 10 Jun 1999 at 10:20 PM
I read somewhere that there is a way to put pixels to the screen without changing banks. If this is tru can anyone please help me out as bank switching is very slow in 16bit modes


Edit Report
Re: Need help with bank switching Posted by BTM on 11 Jun 1999 at 2:33 AM
: I read somewhere that there is a way to put pixels to the screen without changing banks. If this is tru can anyone please help me out as bank switching is very slow in 16bit modes<p>
As far as I know there is no way to put pixels<br>
on the screen without bankswitching. Ofcourse I<br>
know that modes that are within 64Kb don't need<br>
bankswitching, but you're probably talking about<br>
modes like 640-480, 800-600, 1280-1024, etc...<p>
In these modes there is NO way you can put pixels<br>
on the screen without bankswitching, because you <br>
are either confined to one single bank, or you use<br>
the BIOS int 10h to put the pixels on the screen.<br>
The last one doesn't need to know the bank, but <br>
bank switching still happens (by BIOS code).<p>
One advise: <br>
DON'T USE BIOS TO PUT PIXELS ON THE SCREEN<p>
I've checked once how much slower it is, believe <br>
me: there is almost no way of putting a pixel<br>
slower on the screen


Edit Report
Re: Need help with bank switching Posted by The Watcher^TUHB on 18 Jun 1999 at 6:12 AM
<br>
: As far as I know there is no way to put pixels<br>
: on the screen without bankswitching. Ofcourse I<br>
: know that modes that are within 64Kb don't need<br>
: bankswitching, but you're probably talking about<br>
: modes like 640-480, 800-600, 1280-1024, etc...<p>
BTM, welcome to the wonderful world of pmode, where 64k segments no longer exist, in combination with the VESA 2.0 LFB standard, where banking no longer exists. Isn't this just amazing stuff? *wahoo* ;-P<p>
The Watcher^TUHB


Edit Report
Re: Need help with bank switching Posted by Sepi on 11 Jun 1999 at 5:51 AM
: I read somewhere that there is a way to put pixels to the screen without changing banks. If this is tru can anyone please help me out as bank switching is very slow in 16bit modes<p>
It is possible.<br>
Find some documents about "VESA 2.0" and "Linear framebuffer". <br>
One document that I just found is located here:<br>
ftp://x2ftp.oulu.fi/pub/msdos/programming/docs/vgovbe20.zip<br>
(there is also some other interesting stuff...)<p>
I don't know how well it explains the vesa 2.0, because I just take a quick look about it... But it looked that it can be used. I could mail you a better (?) text if you need... (the one where I learned to use VESA 2.0)<p>
VESA 2.0 works fine on DOS. I don't know how well it works in some other OS (like Windows).<p>
You seem to use VESA 1.x, it isn't very big step from there to VESA 2.0.<p>
-Sepi





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.