Results 1 to 14 of 14

Thread: Hardware or VGA chip acceleration instruction code

  1. #1

    Thread Starter
    Fanatic Member jian2587's Avatar
    Join Date
    Aug 2000
    Location
    I bet u need a fusion powered shuttle to reach my place...
    Posts
    963

    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

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.

  4. #4

    Thread Starter
    Fanatic Member jian2587's Avatar
    Join Date
    Aug 2000
    Location
    I bet u need a fusion powered shuttle to reach my place...
    Posts
    963
    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

  5. #5
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.

  6. #6

    Thread Starter
    Fanatic Member jian2587's Avatar
    Join Date
    Aug 2000
    Location
    I bet u need a fusion powered shuttle to reach my place...
    Posts
    963
    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

  7. #7
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.

  8. #8

    Thread Starter
    Fanatic Member jian2587's Avatar
    Join Date
    Aug 2000
    Location
    I bet u need a fusion powered shuttle to reach my place...
    Posts
    963
    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

  9. #9
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.

  10. #10

    Thread Starter
    Fanatic Member jian2587's Avatar
    Join Date
    Aug 2000
    Location
    I bet u need a fusion powered shuttle to reach my place...
    Posts
    963
    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

  11. #11
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.

  12. #12

    Thread Starter
    Fanatic Member jian2587's Avatar
    Join Date
    Aug 2000
    Location
    I bet u need a fusion powered shuttle to reach my place...
    Posts
    963
    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

  13. #13
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.

  14. #14

    Thread Starter
    Fanatic Member jian2587's Avatar
    Join Date
    Aug 2000
    Location
    I bet u need a fusion powered shuttle to reach my place...
    Posts
    963
    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
  •  



Click Here to Expand Forum to Full Width