Hello,
Me and my friend are trying to accelerate a 2D game with OpenGL. The video chipset is Radeon X1250 which seems to be underpowered and can display up to some 80 1366x768 full frames/s. Given that we are drawing many sprites on top of each other the performace drops dramatically under the 60 FPS we are targeting at. Could you please provide optimization tips for rendering fast 2D with OpenGL?
EDIT: some clarifications: Development takes place in C++ under Linux. We did it with SDL but the performance was unsatisfactory so we decided to switch to OpenGL which proved much faster, Of course then there was a push to implement more features requiring us to redraw entire screen every frame.
Our test program renders textured 256x256 quad tiles across the 1366x768 screen. If a single layer of tiles is laid before buffer swap it yields 80 FPS, if two layers are laid framerate drops below 60 FPS. Given that the board will be required to decode and render some small MPEGs at the same time this might be unsatisfactory.
I just thought that I could look for optimizations resulting from the fact that the game is 2D - I thought of, for example: 1) if this is possible to disable texture scaling. 2) render directly to frame buffer (though we've heard that glDrawPixels is supposed to be slow.