Results 1 to 8 of 8

Thread: 3D Hardware Accel. Problem

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2002
    Location
    Alexandria / Egypt
    Posts
    6

    3D Hardware Accel. Problem

    Dear Programmers ..

    i'm usin Nehe Tutorials .. i'min lesson 7 .. i found that the Graphics Performance is tooo SLow .. i don't know why .. my PC Specs ..are

    P4 1.8GHZ/512KB
    256MB DDR
    ASUS TNT2M64 32 MB AGP4X

    i've played many games that was developed using OpenGL [ Return TO Castel of Wolfstein ] it ran tooo smoooth ... now i'm rotating a single cube with 3 Textures .. and it ran slow .. [ FPS is Low ] .. i dono Why ?? .. the game contains lots of objects .. and it ran smoothly .. i'm using Linear [ as most games do ] .. i think that the program is running in software mode

    How can i enalbe .. or detedct that the 3D Hardware acceleration is enabled or running in my program .... ??

    Please Help Me ..

    i'll be Glad for any Help ..

    ThanX Great Programmers ..
    [[[ Motagaly On- Line ]]]
    -=[ Fly with your Fanatsy ]=-

  2. #2
    Senior Member Regular Contributor
    Join Date
    Oct 2001
    Location
    Princeton, NJ
    Posts
    380

    Re: 3D Hardware Accel. Problem

    hmm, I believe that opengl autodetects hardware support, so I don't think you can change that. You could be linking with opengl.dll instead of opengl32.dll, but thats unlikely, what pixelformat are you using? If its unsupported that might be the cause of your troubles

  3. #3
    Junior Member Newbie
    Join Date
    Aug 2002
    Posts
    12

    Re: 3D Hardware Accel. Problem

    if you go full screen that should help, also use triangle strips to construct the box. Also if you are using glut to draw the cube this can slow things down abit, or at least thats my previous experiance.

  4. #4
    Member Contributor
    Join Date
    Apr 2002
    Location
    kremnica, slovakia, europe, earth, sol :-)
    Posts
    99

    Re: 3D Hardware Accel. Problem

    you can chceck current driver by glGetString... and use fullscreen and try varius resolutions and color depths... (and as usual i may be wrong )

  5. #5
    Senior Member Regular Contributor
    Join Date
    Jul 2001
    Posts
    352

    Re: 3D Hardware Accel. Problem

    take care, there are several versions available of the opengl libraries under windows : microsoft, silicon graphics, mesa...
    I think only microsoft's enables hardware acceleration.

  6. #6
    Senior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    Dunblane, Scotland
    Posts
    333

    Re: 3D Hardware Accel. Problem

    The microsoft opengl driver is software only so is very slow. You need to make sure that the program is linking to the nvopengl32.dll (might be a little differnet) Thats the Nvidia opengl dll that supports hardware acceleration on your gfx card.

    Make sure you have nvidia drivers installed, if not go to their website and download one (current ones are 30.** which will work but you would be best with something like the 12.50 which were best for the TNT2s).

    Make sure that you are being hardware accelerated, get Nehes lesson 24 http://nehe.gamedev.net/tutorials/lesson.asp?l=24 It will show you your gfx card name and opngl version etc. Make sure it says somehting like Opengl 1.2 and has the TNT2m64. If it says something about microsft then you are in software mode.

    Alternatively your gfx card is a little old and would be fairly slow. An upgrade even to an old second hand GF1/2 would be excelent.

    Tim
    Reality is for idiots only the best over come it!

  7. #7
    Senior Member Regular Contributor
    Join Date
    Feb 2000
    Posts
    211

    Re: 3D Hardware Accel. Problem

    Hmmm, i don't know how Nehe-Tut's are working in its speciality - but, a major error of beginners is the following programming fault:
    The part where you are applying the textures to your cube is a line called "glSelectTexture(xyz)" (aware of that i don't know how Nehe-Tut's are written!) - the bug is easy: with the glSelectTexture() (or was it glSelectActiveTexture() ?) each frame the whole texture-data is transfered from main-memory to your cards-memory - and with 3 textures, each a size of 512x512x3/x4, this is a very relevant amount of data which could be the possible slowdown-fault - so, what you have to do is: kick glSelectTexture() out of your program and start using a technique "called texture-objects" (i don't know if Nehe-Tut's are explaining this!) - this works with glGenTextures() and glBindTextures - the trick is: now, the complete data hasn't to be transfered each frame; instead the data is transfered only once !
    So, i'm not sure but this coulb be possible your slowdown-bug - i may be wrong, so don't rely-on-100% on my comment
    DJSnow

  8. #8
    Junior Member Newbie
    Join Date
    Jul 2002
    Location
    Alexandria / Egypt
    Posts
    6

    Re: 3D Hardware Accel. Problem

    Oh .. thanX every bode .. i'm really glad with all this help ..

    i've already setup the nVidia Dentator XP drivers on WindowsXP .. it's version is 30.14 .. i think it's the Last one .. i'm using "GL_LINEAR" at texture Filtering may be this is slowing the program ... but all games uses this Filter . the other Filters are tooo blocky .. this one is nice ..
    i'm really to confused .. i thought that OpenGL is Fast on my PC ..

    any way thanX Great Men
    [[[ Motagaly On- Line ]]]
    -=[ Fly with your Fanatsy ]=-

Similar Threads

  1. Renderer Detection, GDI Generic & hardware accel.
    By glossyblackcoffin in forum OpenGL: User Software
    Replies: 12
    Last Post: 02-26-2010, 09:34 AM
  2. Different Results between No Accel. and Full Accel.
    By lobstah in forum OpenGL: Advanced Coding
    Replies: 6
    Last Post: 01-29-2002, 01:17 PM
  3. Viper II & OpenGL 3d accel. problem
    By in forum OpenGL: User Software
    Replies: 2
    Last Post: 02-07-2001, 10:18 AM
  4. loosing hw accel?
    By mandroka in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 06-30-2000, 02:43 AM
  5. For those without OpenGL accel. try this!!
    By ngill in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 06-20-2000, 12:22 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