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:
wrenczes@gmail.com
2011-04-24 10:00:37 +00:00
parent 9fdb3fbe3a
commit be2a4ee4ec
3 changed files with 2441 additions and 2420 deletions

File diff suppressed because it is too large Load Diff