PDA

View Full Version : Performance: 95% SLOWER than DirectX? Is something wrong?



08-24-2002, 05:21 PM
Hi,


I just recently started fiddling with openGL. I downloaded nehe's tutorial 06 for texture mapping. I'm getting around 7 frames per second. This is ridiculous for rotating a box primitive with 1 texture map. My system has a Voodoo 3k. Ok, it's an outdated card but 8fps?!? I decided to do some testing on a GeForce3 card (1.0+ GHz processor – new system). I only had around 55 fps for rotating a stupid box. Baffled, I wrote a simple routine to test if it was resident in texture memory…it was…am I missing something?

Thanks,

Dale

Morglum
08-25-2002, 01:05 AM
Do you get hardware acceleration for opengl ?
Try glGetString (GL_VENDOR) and glGetString (GL_RENDERER).
If it doesn't say anything about 3dfx voodoo 3, you're running without acceleration (but even if you get 3dfx voodoo3, you can't be sure that you get hw accel.)

masterpoi
08-25-2002, 03:39 AM
Strange that demo ran @ 300 fps on my old 400mhz/ati rage 128 machine

MtPOI

Rob The Bloke
08-25-2002, 05:20 AM
Either

a: you have v-sync enabled, thus limiting your framerate

or

b: you might want to get some new drivers

Rob The Bloke
08-25-2002, 05:22 AM
As an addition, voodoo 3's will run openGL only if you have a recent enough driver and the display is limited to 16bit.....

tinak
08-28-2002, 05:57 AM
I've never been able to get beyond 77 fps even for a scene that doesn't do anything. I suspect its the fps code I am using I found on gametutorials.com site. I will need to locate an independant program and see what that says. I am using a GeForce 2 MX 400 on a Athlon 1200Mhz machine. But then my machine has never been that fast anyway. ;-)

Tina
(AKA tina_k - forgot I had registered here)

Morglum
08-28-2002, 06:04 AM
tinak,

you're just running with VSYNC enabled. You can turn it off with wglSwapControl (that's an extension).

tinak
08-28-2002, 08:13 PM
Is that the correct wording, cause I can't find it with a google search nor in my MSDN library.

Is this VSYNC turned on by default then and you have to turn it off programmatically?

Thanks anyway..

Tina

PS... I also tried the 3D Benchmark Tests and even they never went higher than 50fps. But those are some fancy graphics so I can't complain.. yet ;-)

harsman
08-29-2002, 02:06 AM
WGL_EXT_swap_control (http://oss.sgi.com/projects/ogl-sample/registry/EXT/wgl_swap_control.txt)

tinak
08-29-2002, 10:13 AM
Thanks... now why don't it give example code... sigh...

After searching for how to use it with google I went back to my old favourite gamedev and one of the forum messages explained how to use it exactly.

Here it is for those that are having trouble using it like myself. http://www.gamedev.net/community/forums/topic.asp?topic_id=101537

Tina

EDIT: Aha, found the item on my video card - so thats what it does - hehe

[This message has been edited by tinak (edited 08-29-2002).]