flat assembler
Message board for the users of flat assembler.

Index > OS Construction > I NEED HELP! *and I don't know where to turn!?

Author
Thread Post new topic Reply to topic
dCool101d



Joined: 30 Dec 2004
Posts: 16
dCool101d
Ok, I;m trying to get into THE FASTEST possible VGA mode of 1024x768 32/24bpp...well I want to do it in C since I can't seem to fully understand ASM (although I've gotten very far)

ASM is just to hard when everything is so complex these days!

Well, can anyone help me out?
Post 05 May 2005, 19:45
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
mode itself doesn't have speed. You mean fastest screen refresh rate, or fastest drawing routines, or what?
Post 05 May 2005, 21:46
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
dCool101d



Joined: 30 Dec 2004
Posts: 16
dCool101d
I want fastest drawing routines...refresh rate would be nice too, but I'm looking for mainly drawing speed right now!

I want refresh rates of at least 60 hz too.
Post 08 May 2005, 18:18
View user's profile Send private message Visit poster's website Reply with quote
Scanner



Joined: 14 May 2005
Posts: 7
Scanner
The fastest possible VGA mode you are wanting would be defined by the VESA BIOS. Using the VESA API calls, you will gain access to a linear frame buffer and switch to that mode.

Unfortunatly the VESA API is not defined for C unless you have a runtime for the environment you are trying to launch it from (like DOS).

Anyway, once have the mode set and the base address of the linear framebuffer, you can use old-school VGA programming techniques to get pixels onto the screen. (this method is the slowest though, hardware support for various drawing routines are available on all modern screen cards but you need to know the API for each card out there to write something portable, thus DirectDraw and drivers for each screen card Smile . Have a look at some linux drivers to get a feel for the API for some more commen cards.

The VESA bios usually ships as part of the screen card's BIOS. Make sure the machine supports the VESA bios (at least version 2) before testing anything VESA on it.
Post 14 May 2005, 11:47
View user's profile Send private message Yahoo Messenger Reply with quote
deltre



Joined: 17 Apr 2005
Posts: 12
Location: Netherlands
deltre
You want the fastest routines - but you want to "do it in C" - do you want us to simply supply graphic routines as C code?

If I were you, I'd settle for less before setting such a goal. There are *alot* of graphics guides out there, 50% of them in C. You will not have the fastest routines on the first go, but fortunately playing with your own graphic routines is alot more fun than debugging your memory manager.
Post 23 May 2005, 09:16
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3170
Location: Denmark
f0dder
If you want "the fastest" video, go for DirectX.It's the API with the best hardware support and the most features.
Post 23 May 2005, 15:49
View user's profile Send private message Visit poster's website Reply with quote
bubach



Joined: 17 Sep 2004
Posts: 340
Location: Trollhättan, Sweden
bubach
f0dder: This is the OS Construction forum, not the Windows forum.. Razz
Post 24 May 2005, 08:29
View user's profile Send private message Reply with quote
THEWizardGenius



Joined: 14 Jan 2005
Posts: 382
Location: California, USA
THEWizardGenius
lol DirectX you don't have when making your own OS. And if its pmode OS you don't have VESA API either. In fact, sad to say, you have to write all SVGA or XGA routines... yourself! Smile And unfortunately, there is no standard for these to speak of, different vendors use their own programming methods. So... good luck! And welcome to the world of OSDev.
Post 24 May 2005, 15:39
View user's profile Send private message AIM Address Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.