Hi everybody i am experiencing a strange issue , the release build of my
mfc application is slower than the debug.
I have checked all optimisations and it is still slower.
What am i doing wrong ?
i am using stl and lib3ds as a dll, but i don’t think that this is the
problem, the opengl rendering is noticebly (sp??) slower than the debug
Please log in or register to post a reply.
Profile it. Look up “very sleepy” on google. See what’s taking time.
By “the OpenGL rendering is slower”, do you mean slower on the GPU or on
I mean everything, shaders and model rendering is about 20% slower then
in debug build
i have downloaded “very sleepy”, much of the time is taken by the
kifastrect (98%), this is true both for release and for debug as well.
I have tried to make the rednering window smaller and the culprit is in
the opengl driver, in release build is slower than in rebuild.
Has anyone ever experienced anything like that ? Is it possible that
the mfc application is slowing down the release build in
some way ?
What is the “kifastrect”?
Did you check your timers? Is your game run loop operating at a fixed
FPS? Debug vs release builds can often involve different precision that
may effect this, especially if you’re using the clock() function (which
you shouldn’t be if you are). Also, check your optimization properties.
Try using just the project defaults (typically, optimize for speed is
enabled with all other options disabled). Continue playing with the
options until you can see a difference. I’ve never had problems with the
2010 compiler, but I remember running into constant issues with the VC 6
compiler optimizing code in ways it shouldn’t have (sometimes outright
Other than that, profiling your code will be the only way to track down
the issue. You may need to manually disable code and enable them one at
a time to trace the issue.
I am not running a fps timer right now, but i can see a sensible
difference in rendering within the opengl context, the release build is
slower than debug build and the difference can be detected with the
Post (or attach the files) your release and debug project settings here.
That might be easier to check all the settings for other people here.
Also, how about to reinstall the drivers and opengl-sdk again?
I have used ‘very sleepy’ and i found that the driver kifastsystemrect
is probably the responsible of the slowing down.
Is it possible that in release mode somehow the vsync is messing arond
with the driver’s calls ?
i have filed a question to nvidia but they aren’t answeinrg.
Has anybody ever noticed this problem before ?