title: Opengl ES - Is there a way to speed up my rendering?
body: <p>I have a textured square. I draw it with this method: </p>
  
  <pre><code>    public void draw(GL10 gl) {
  
      gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
      gl.glVertexPointer(3, GL10.GL_FLOAT, 0, vertexBuffer);
  
          if (mShouldLoadTexture) {
              loadGLTexture(gl);
              mShouldLoadTexture = false;
          }
          if (mTextureId != -1 &amp;&amp; mTextureBuffer != null) {
              gl.glEnable(GL10.GL_TEXTURE_2D);
              gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY);
  
              gl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, mTextureBuffer);
              gl.glBindTexture(GL10.GL_TEXTURE_2D, mTextureId);
          }
              gl.glDrawArrays(GL10.GL_TRIANGLE_FAN, 0, 4);
  
          if (mTextureId != -1 &amp;&amp; mTextureBuffer != null) {
              gl.glDisableClientState(GL10.GL_TEXTURE_COORD_ARRAY);
          }
  
      gl.glDisableClientState(GL10.GL_VERTEX_ARRAY);
  }
  
  
  
  
      public void onDrawFrame(GL10 gl) {
  
          gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
  ...
  
  
  for (int i=0; i&lt;50; i++) {
  ...loadidentity
  ...translatef
  ...rotatef
  
  ...alphaenabled
  
  square1.draw(gl);
  
  ...alphadisabled
  }
  
  ...etc
  </code></pre>
  
  <p>i have only 10+10 textured (and animated, blended) square, on a HTC Legend i get 48 FPS, Galaxy S get 60 FPS. </p>
  
  <p>when i put 10+10+40 textured (and animated, blended) square, on a HTC Legend i get 14-20 FPS, Galaxy S get again 60 FPS. </p>
  
  <p>Is there a way to speed up my application (and FPS)? Or am i doing something wrong? </p>