|
-
Oct 15th, 2002, 06:02 AM
#1
Thread Starter
Fanatic Member
Hardware or VGA chip acceleration instruction code
Anyone?
I coded my own ASM MS-DOS picture routine, which uses 32bit
instruction codes to transfer pics onto, say a 800x600x16 screen,
on my old SiS 5597 chip, the FPS is around 15. Later I use DirectX
to do the same, and it goes around 100 over.
This is due to Windows hardware acceleration function, besides
asking the driver to accelerate the hardware...
So, anyone know of the instruction codes to accelerate VGA chips?
ASM,C,C++,BASIC,VB,JAVA,VBS,HTML,ASP,PHP,mySQL,VB.NET,MATLAB
Programming is fun, but only if you're not on a tight deadline 
So I consider all those working engineers sad people
VB FTP class
3 page PHP crash course
Crash Course on DX9 Managed with VB.NET covering basics till terrain creation
-
Oct 16th, 2002, 11:04 AM
#2
Every graphics card has it's own set of instruction to make use of hardware acceleration. These are very hard to obtain, have no ASM equivalent (must be directly coded in hex) and undocumented. Some companies, like ATI, will give you info on them if you beg and grovel enough. Others, like nVidia, don't, and you have to use their drivers to use hardware acceleration, and if you happen to have an OS for which no drivers exist (i.e. any UNIX version) - well, bad luck.
There is a project going on, they want to write drivers that give 3d acceleration to the linux implementation of OpenGL, they have info about ATI cards, but not about nVidia cards, so they can't support those. nVidia doesn't write any drivers for linux. From their point of view it's a waste of resources, 99% of the people that need acceleration use windows.)
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 16th, 2002, 11:05 AM
#3
But 15 FPS seems quite slow to me, I'm sure you could do better.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 30th, 2002, 05:34 AM
#4
Thread Starter
Fanatic Member
15 FPS...
I wrote the cleanest asm code ever to achieve this:
I STOSD to it and use Bank switching.
BTW, about the gfx acceleration function, I didn't mean DirectX
or the display driver. If you goto My Computer -> Properties ->
Performance -> Graphics
u'll see that Hardware Acceleration
ASM,C,C++,BASIC,VB,JAVA,VBS,HTML,ASP,PHP,mySQL,VB.NET,MATLAB
Programming is fun, but only if you're not on a tight deadline 
So I consider all those working engineers sad people
VB FTP class
3 page PHP crash course
Crash Course on DX9 Managed with VB.NET covering basics till terrain creation
-
Oct 30th, 2002, 08:25 AM
#5
That would be hardware blitting support then. Still something that must be supported by the card, and you have to know how to access it for each card.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 31st, 2002, 05:00 AM
#6
Thread Starter
Fanatic Member
Well, not really, as far as I'm concerned.
If u use the standard VGA driver provided by Windows(which
gives u only 640x480x4bits), u still have that vga hardware
acceleration.
And wut is this hardware blitting?
is it like when u draw a picture that is off the screen?
ASM,C,C++,BASIC,VB,JAVA,VBS,HTML,ASP,PHP,mySQL,VB.NET,MATLAB
Programming is fun, but only if you're not on a tight deadline 
So I consider all those working engineers sad people
VB FTP class
3 page PHP crash course
Crash Course on DX9 Managed with VB.NET covering basics till terrain creation
-
Nov 4th, 2002, 05:32 AM
#7
Well, blitting in general is copying a rectangular image area to another image, usually the screen. Hardware blitting would be hardware support for that: the graphics card can copy data from one place in the video RAM to another faster than your code can.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Nov 5th, 2002, 08:53 AM
#8
Thread Starter
Fanatic Member
Haha, really?
I know how to do it yet dont know wut it's called 
However, to ask the hardware to do the blitting, okay, this is
impossible unless u know the right way to do it for different
cards.
So, u mentioned must be directly coded in Hex, really?
Then the CPU must've don't know how to handle it if it has no
ASM equavalent.
I thought the code would just OUT some card specific bits
and that'll do the trick.
ASM,C,C++,BASIC,VB,JAVA,VBS,HTML,ASP,PHP,mySQL,VB.NET,MATLAB
Programming is fun, but only if you're not on a tight deadline 
So I consider all those working engineers sad people
VB FTP class
3 page PHP crash course
Crash Course on DX9 Managed with VB.NET covering basics till terrain creation
-
Nov 5th, 2002, 01:24 PM
#9
Yeah, "that's it". Of course you first need to know those card specific bits.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Nov 6th, 2002, 08:54 AM
#10
Thread Starter
Fanatic Member
Oh...*sigh*
So gotta stick to VESA...
In comparison, how much faster will the hardware driver
outperform VESA in average?
ASM,C,C++,BASIC,VB,JAVA,VBS,HTML,ASP,PHP,mySQL,VB.NET,MATLAB
Programming is fun, but only if you're not on a tight deadline 
So I consider all those working engineers sad people
VB FTP class
3 page PHP crash course
Crash Course on DX9 Managed with VB.NET covering basics till terrain creation
-
Nov 6th, 2002, 03:58 PM
#11
I have no idea, that depends on what you do. When blitting a few large bitmaps the hardware will waayyyyy outperform software blitting. When blitting many small bitmaps the difference will be smaller.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Nov 6th, 2002, 06:55 PM
#12
Thread Starter
Fanatic Member
So does VESA have atleast a basic function to do hardware
blitting which all cards must obey? I mean a universal standard
hardware blitting function?
ASM,C,C++,BASIC,VB,JAVA,VBS,HTML,ASP,PHP,mySQL,VB.NET,MATLAB
Programming is fun, but only if you're not on a tight deadline 
So I consider all those working engineers sad people
VB FTP class
3 page PHP crash course
Crash Course on DX9 Managed with VB.NET covering basics till terrain creation
-
Nov 7th, 2002, 08:42 AM
#13
I don't know. I started programming about 4 years ago, so even though I know quite a lot of computer internals I don't know much about DOS programming.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Nov 7th, 2002, 09:04 AM
#14
Thread Starter
Fanatic Member
O...well, i c
Anyway,thx 4 ur replies
ASM,C,C++,BASIC,VB,JAVA,VBS,HTML,ASP,PHP,mySQL,VB.NET,MATLAB
Programming is fun, but only if you're not on a tight deadline 
So I consider all those working engineers sad people
VB FTP class
3 page PHP crash course
Crash Course on DX9 Managed with VB.NET covering basics till terrain creation
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|