Mostly formatting cleanup, but a couple of openGL related fixes : don't call state change functions if their params haven't changed. In particular, we call ClearScreen() in several places in the code, but BeginScene() already does this. According to several openGL performance guides I skimmed through, if you call clear more than once per frame draw, performance will suffer.
This seems to help with issue r103 - on my win machine, it's substantially better; on psp, not quite as drastic, but it's still better than before.
This commit is contained in:
4443
JGE/src/pc/JGfx.cpp
4443
JGE/src/pc/JGfx.cpp
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user