title: Android Openg GL ES 2 drawing big textures slow
body: <p>I am <strong>very</strong> new to OpenGL.</p>
  
  <p>I am trying to draw textured quads (2 triangles). The size of texture is 900x900px. I have no problems with one quad but when I trying to draw 5-10 quads I see noticable slow down.</p>
  
  <p>Maybe I'm doing something wrong...</p>
  
  <p>Code:</p>
  
  <pre><code>public void onDrawFrame(GL10 gl) {
      GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_DEPTH_BUFFER_BIT);
      ... matrix calculation ...
      GLES20.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, mvpMatrix, 0);
      GLES20.glDrawArrays(GLES20.GL_TRIANGLE_STRIP, 0, 4);
  }
  </code></pre>
  
  <p>Vertex shaders:</p>
  
  <pre><code>uniform mat4 uMVPMatrix;
  attribute vec4 vPosition;
  attribute vec2 a_TexCoordinate;
  varying vec2 v_TexCoordinate;
  void main() {
    gl_Position = uMVPMatrix*vPosition;
    v_TexCoordinate = a_TexCoordinate;
  }
  </code></pre>
  
  <p>Fragment shader:</p>
  
  <pre><code>    precision mediump float;
      uniform sampler2D u_PreviewTexture;
      varying vec2 v_TexCoordinate;
  
      void main() {
        vec4 color = texture2D(u_PreviewTexture, v_TexCoordinate);
        gl_FragColor = color;
      }
  </code></pre>
  
  <p>Testing platform is Galaxy S3.
  In profiler I see that about 60ms takes eglSwapBuffers call.</p>
  
  <p>How can I draw quads with big textures fast?</p>