Game Programming and Development Tools

MFC + OpenGL = 20 fps??? – Briant

Briant

Member

Posts: 742
From: Stony Plain, Alberta, Canada
Registered: 01-20-2001
Hi,

I'm using MFC in my OpenGL app to make development of dialogs, etc, easier. At the start of the app, I create a 1 millisecond timer to trigger my rendering function. Now I don't expect 1000 fps, but I do expect it to move along as fast as it can. However, I'm only getting 20 fps regardless of video resolution: everything from 640x480 to 1800x1440 all run at the same speed, 20 fps, in both debug and release modes.

Why??? And how can I change this so it runs as fast as possible without giving up MFC?

Thanks,
Brian

------------------

pilgrim
Junior Member

Posts: 5
From: Pasadena, CA, USA
Registered: 08-23-2001
I am assuming that without MFC you have experienced faster frame rates, thus you are led to the conclusion that something about using MFC is locking your frame rate at 20fps. Correct?

Have you used a timer to call your renderer in the past without these results?

Gil

Briant

Member

Posts: 742
From: Stony Plain, Alberta, Canada
Registered: 01-20-2001
Hey Gil! I just sent you another email. I just put two and two together when I saw your name.

This is my first OpenGL project, and I've never used MFC for a graphical application before. I know faster frame rates are possible, I can tweak some of my OpenGL games to run upwards of 100 fps, so I know OpenGL is probably not my bottleneck, unless I'm not configuring it properly or something. I suspect this is what it is, as after some tweaking in my initialize function, I bumped up the fps to about 35, but still I'd like to see 60-70...

Brian

------------------

Briant

Member

Posts: 742
From: Stony Plain, Alberta, Canada
Registered: 01-20-2001
Yippee!! Problem solved thanks to a nice fellow in usenet, who pointed me at a nifty FAQ. It now runs at 40 fps in 1800x1440x32, and a mind boggling 670 fps in 640x480x16. But since my monitor's refresh rate is only set at 75 Hz, that fps is huge overkill, but still cool!

Brian

------------------