Thread: is there more faster than DIB's?

  1. #1
    Registered User
    Join Date
    Aug 2013
    Posts
    451

    is there more faster than DIB's?

    on win32 is there code more faster than DIB's?

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    DirectX and OpenGL.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Aug 2013
    Posts
    451
    Quote Originally Posted by Salem View Post
    DirectX and OpenGL.
    sorry i mean with win32.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    They are part of win32.

    I suppose it depends on your motivation for learning graphics programming.
    You want slow and steady, you do everything yourself, then you do the maths and bash pixels into your DIB buffer (and you drive a Prius).
    You want fast, you have to delegate work to the GPU (via the APIs) to do all the low level pixel writing (and you drive a Porsche)

    Microsoft invented DirectX because using DIBs for high performance graphics was (and still is) a complete non-starter. It just isn't going to happen.
    There's just too many layers of abstraction between your code and the pixels on the screen.

    Graphics and gaming - Win32 apps | Microsoft Learn

    Anything that runs on the CPU and works at the level of writing individual pixels is always going to be far slower than just sending a 'draw line' command to the GPU to do the work for you.

    You were messing around with DirectX 5 years ago.
    Code Blcoks: what is the best Directx tutorial for start?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    Registered User
    Join Date
    Aug 2013
    Posts
    451
    Quote Originally Posted by Salem View Post
    They are part of win32.

    I suppose it depends on your motivation for learning graphics programming.
    You want slow and steady, you do everything yourself, then you do the maths and bash pixels into your DIB buffer (and you drive a Prius).
    You want fast, you have to delegate work to the GPU (via the APIs) to do all the low level pixel writing (and you drive a Porsche)

    Microsoft invented DirectX because using DIBs for high performance graphics was (and still is) a complete non-starter. It just isn't going to happen.
    There's just too many layers of abstraction between your code and the pixels on the screen.

    Graphics and gaming - Win32 apps | Microsoft Learn

    Anything that runs on the CPU and works at the level of writing individual pixels is always going to be far slower than just sending a 'draw line' command to the GPU to do the work for you.

    You were messing around with DirectX 5 years ago.
    Code Blcoks: what is the best Directx tutorial for start?
    it's hard start learning DirectX.. but with i must do it
    thanks for all

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Faster than 1 second
    By LAMER_CODER in forum C Programming
    Replies: 1
    Last Post: 03-02-2013, 04:00 PM
  2. Why is this faster
    By Alienchicken in forum C Programming
    Replies: 4
    Last Post: 03-08-2011, 12:41 AM
  3. Why is one faster than the other?
    By phlook in forum C Programming
    Replies: 6
    Last Post: 04-02-2009, 01:27 PM
  4. Which Is Faster?
    By GaPe in forum C Programming
    Replies: 4
    Last Post: 10-25-2003, 10:20 AM
  5. What is faster....?
    By Unimatrix_001 in forum C++ Programming
    Replies: 12
    Last Post: 06-15-2003, 09:34 AM

Tags for this Thread