Results 1 to 4 of 4

Thread: Can't enable Hardware acceleration

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2001
    Location
    Islamabad, FC, Pakistan
    Posts
    6

    Can't enable Hardware acceleration

    HI
    I'm using the following code to setup pixelformat (in Windows using MFC)

    BOOL GLStart::SetupPixelFormat (HDC hDC)
    {
    PIXELFORMATDESCRIPTOR pfd =
    {
    sizeof(PIXELFORMATDESCRIPTOR),
    1,
    PFD_SUPPORT_OPENGL |
    PFD_DRAW_TO_WINDOW |
    PFD_DOUBLEBUFFER,
    PFD_TYPE_RGBA,
    32,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16,
    0, 0,
    PFD_MAIN_PLANE,
    0, 0, 0, 0
    };
    m_PixelFormat = ChoosePixelFormat (hDC, pfd);
    SetPixelFormat (hDC, m_PixelFormat, &pfd);
    }

    But I am unable to get Hardware acceleration.... Any suggestions...
    EycEwinD

  2. #2
    Guest

    Re: Can't enable Hardware acceleration

    What card?

  3. #3
    Junior Member Newbie
    Join Date
    Feb 2001
    Location
    Islamabad, FC, Pakistan
    Posts
    6

    Re: Can't enable Hardware acceleration

    I have a Voodoo3 16MB. I was told to do the following to find out if I was was getting Hardware support.

    After you fill out the PIXELFORMATDESCRIPTOR, do the following:

    int pixelFormat = ChoosePixelFormat (hDC, &pfd);

    PIXELFORMATDESCRIPTOR pfd_new;
    DescribePixelFormat (hDC, pixelFormat, sizeof(PIXELFORMATDESCRIPTOR), &pfd_new);

    int generic_format = pfd_new.dwFlags & PFD_GENERIC_FORMAT;
    int generic_accelerated = pfd_new.dwFlags & PFD_GENERIC_ACCELERATED;

    if (generic_format && ! generic_accelerated)
    {
    // software
    }
    else if (generic_format&& gneric_accelerated){
    // hardware - MCD
    }
    else if (! generic_format && ! generic_accelerated)
    {
    // hardware - ICD
    }

    PS: I'm not using ICD
    BTW: What is an "ICD"?
    EycEwinD

  4. #4
    Junior Member Newbie
    Join Date
    Feb 2001
    Location
    Oulu, Finland
    Posts
    12

    Re: Can't enable Hardware acceleration

    Originally posted by EycEwinD:
    HI
    I'm using the following code to setup pixelformat (in Windows using MFC)

    BOOL GLStart::SetupPixelFormat (HDC hDC)
    {
    PIXELFORMATDESCRIPTOR pfd =
    {
    sizeof(PIXELFORMATDESCRIPTOR),
    1,
    PFD_SUPPORT_OPENGL |
    PFD_DRAW_TO_WINDOW |
    PFD_DOUBLEBUFFER,
    PFD_TYPE_RGBA,
    32,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16,
    0, 0,
    PFD_MAIN_PLANE,
    0, 0, 0, 0
    };
    m_PixelFormat = ChoosePixelFormat (hDC, pfd);
    SetPixelFormat (hDC, m_PixelFormat, &pfd);
    }

    But I am unable to get Hardware acceleration.... Any suggestions...

    Download glenum from http://support.microsoft.com/support.../Q176/7/52.asp With that program, you can check which pixelformats in your computer are hardware accelerated and which are not.
    If you have an old or low-end accelerator, it might not support 32-bit color buffer, but maybe only 16-bit. And note, that although pixelformats using accumulator or stencil buffers might appear as "accelerated", they handle those buffers in software (so very slowly).

    -Jyrki.

Similar Threads

  1. OpenGL hardware Acceleration no enable
    By u2knetwork in forum OpenGL: User Software
    Replies: 10
    Last Post: 07-02-2008, 10:16 PM
  2. enable hardware accelerated antialiasing
    By burnettryan in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 09-20-2006, 10:07 PM
  3. Replies: 1
    Last Post: 06-17-2004, 08:02 AM
  4. hardware acceleration on NT
    By in forum OpenGL: User Software
    Replies: 2
    Last Post: 11-28-2002, 10:51 AM
  5. How to enable hardware acceleration?
    By Chromebender in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 07-20-2000, 06:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean