Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: How i can disable hardware acceleration?

  1. #1
    Member Newbie
    Join Date
    Jan 2001
    Location
    Russia,Kazan
    Posts
    33

    How i can disable hardware acceleration?

    Can i disable/enable hardware acceleration from my program?

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Dec 2000
    Location
    Reutlingen, Germany
    Posts
    2,042

    Re: How i can disable hardware acceleration?

    Well, I donīt really know, I never tried it because I donīt see a sense why doing it. However, you will have your own reasons. So here is my suggestion: If you create your glwindow under windows and do not use glut then you surely know that you have to setup a window a device context, bla bla bla...
    Well, I remember that when you set up a window or the pixel format, you somewhere use a flag which tells windows to use OpenGL (I donīt know the name of the flag, but you will find it, because of its name). Try if the program still runs if you donīt use this flag. I am absolutely uncertain if it will, but it is worth a try, I think. However, if you just want to test how big the differences are between accelerated and not-accelerated programs you should look if there is such an option in your graphics-card-panel. I think some cards let you disable the acceleration.

    I hope I could help you, but how I said, I am not sure if it is possible. In spite of this, I donīt know why one want to do this.
    GLIM - Immediate Mode Emulation for GL3

  3. #3
    Senior Member Regular Contributor
    Join Date
    Feb 2000
    Location
    Caracas/Venezuela
    Posts
    182

    Re: How i can disable hardware acceleration?

    In theory, if when requesting a pixelformat in win32 that has the PFD_GENERIC_FORMAT and doesn't have the PFD_GENERIC_ACCELERATED should work.
    For testing purposes, I switch my video color depth to 8bit to test if my code works in software, etc. It requieres that you manage palletes in win32 (which you can get out from sample code out there).

  4. #4
    Senior Member Regular Contributor
    Join Date
    Jul 2000
    Location
    Augsburg, Germany
    Posts
    334

    Re: How i can disable hardware acceleration?

    Originally posted by coco:
    In theory, if when requesting a pixelformat in win32 that has the PFD_GENERIC_FORMAT and doesn't have the PFD_GENERIC_ACCELERATED should work.
    Search for a post by Eric on that. He has posted working source (I tried ).

    And Jan2000: There is sense in doing that. There are some cards which crash when calling certain OpenGL functions. If the user has such a card, he can choose software rendering.

  5. #5
    Senior Member Frequent Contributor
    Join Date
    Feb 2000
    Location
    France
    Posts
    880

    Re: How i can disable hardware acceleration?

    Hehe, I am glad it worked Kilam !

    Here is the link:
    http://www.opengl.org/discussion_boa...ML/001818.html

    Regards.

    Eric

  6. #6
    Member Newbie
    Join Date
    Dec 2000
    Location
    Canada
    Posts
    34

    Re: How i can disable hardware acceleration?

    Another option would be to use 8-bit colour, since few cards accelerate 8-bit colour modes these days. Granted, your stuck with only 256 colours, but depending on what you're testing this won't matter much, and it'll work on non-Win32 platforms as well.

  7. #7
    Senior Member Regular Contributor
    Join Date
    Feb 2000
    Location
    Caracas/Venezuela
    Posts
    182

    Re: How i can disable hardware acceleration?

    outlander78:
    Thats what I said, but remember that at least on windows your app should manage palettes so your opengl display makes any sense in 8bits.

    eric:
    well, I believe described the short version: use PFD_GENERIC_FORMAT instead PFD_GENERIC_ACCELERATED, and you implemented a fully working version with a lot of other functionalities.

  8. #8
    Member Newbie
    Join Date
    Dec 2000
    Location
    Canada
    Posts
    34

    Re: How i can disable hardware acceleration?

    Originally posted by coco:
    outlander78:
    Thats what I said, but remember that at least on windows your app should manage palettes so your opengl display makes any sense in 8bits.
    Sorry about that. I only read as far as your use of constants before skimming on. I didn't mean to repeat you word for word!

  9. #9
    Senior Member Regular Contributor
    Join Date
    Feb 2000
    Location
    Caracas/Venezuela
    Posts
    182

    Re: How i can disable hardware acceleration?

    Outlander:
    Hey, I didnt mean to complain about anything, just wanted to point out that to use 8bit it's better to manage palettes, that's all. In fact, its cool to know that others do that ugly trick too!

  10. #10
    Senior Member Frequent Contributor
    Join Date
    Feb 2000
    Location
    France
    Posts
    880

    Re: How i can disable hardware acceleration?

    Originally posted by coco:
    well, I believe described the short version[/B]
    Hi Coco !

    Actually, if the only thing you do is use PFD_GENERIC_FORMAT instead of PFD_GENERIC_ACCELERATED, you will most likely obtain an accelerated context anyway... I don't know why but it seems that the Win32 API call ChoosePixelFormat does not care about this flag !

    A funny thing I found while writing this routine is that a software rendering context features the PFD_GENERIC_FORMAT and not the PFD_GENERIC_ACCELERATED (logical!). But an accelerated one features none of them (not even PFD_GENERIC_ACCELERATED !). Perhaps it is due to my drivers but I thought it was strange... Mind you, if the flag for "generic" is not there, it should mean that you are "accelerated" !

    Regards.

    Eric

Page 1 of 2 12 LastLast

Similar Threads

  1. About hardware acceleration
    By T.james in forum OpenGL: Advanced Coding
    Replies: 7
    Last Post: 06-15-2006, 02:46 PM
  2. Replies: 1
    Last Post: 06-17-2004, 08:02 AM
  3. Disable Hardware Acceleration
    By WondeRu in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 09-15-2003, 02:31 AM
  4. About hardware acceleration
    By jxruan in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 07-21-2001, 03:58 PM
  5. HELP! hardware acceleration
    By starpower in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 08-24-2000, 08:51 AM

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