so I'm doing my first steps with openGL development on android and I'm kinda stuck at some serious performance issues...
What I'm trying to do is render a whole grid of single colored squares on to the screen and I'm getting framerates of ~4FPS. The squares are 9px in size right now with one pixel border in between, so I get a few thousand of them.
I have a class "Square" and the Renderer iterates over all Squares every frame and calls the draw() method of each (just the iteration is fast enough, with no openGL code the whole thing runs smootlhy at 60FPS). Right now the draw() method looks like this:
So its actually only 3 openGL calls. Everything else (loading shaders, filling buffers, getting appropriate handles, etc.) is done in the Constructor and things like the Program and the handles are also static attrbutes.
What am I missing here, why is it rendering so slow?
Any help greatly appreciated!