Page 1 of 1

Minor performance improvements

Posted: Wed May 26, 2010 20:35
by Rachael
This is a code patch I made a few weeks ago that aimed to improve framerate while in OpenGL mode.

It really didn't do much to achieve that, the results were very minor, but when talking about it with a few friends they said even minor improvements are better than none at all.

All this patch does is skip more of the Software code while you're in OpenGL mode.

I have no idea on its stability, and I do know that the improvements are very slim.

But even so, it should hopefully put less of a load on the CPU, especially in higher resolutions, maybe making GZDoom slightly more ATI friendly?

I've purposely not committed this patch, because I think it needs the opinion of more experienced coders before it goes anywhere. As of now, I cannot continue it because I do not have a working compiler system set up.

Re: Minor performance improvements

Posted: Wed May 26, 2010 21:20
by Graf Zahl
With the exception of R_SetupBuffer the functions you put this in will never be called when the GL renderer is active. R_SetupBuffer only gets called when the resolution changes in GL mode. All other calls are also in software renderer code only.

As a result the gain of this patch is precisely: zero.

Re: Minor performance improvements

Posted: Thu May 27, 2010 4:46
by Rachael
Fair enough, then.