title: Android OpenGL lag every x frame
body: <p>I am developer of Android game.</p>
  
  <p>I have create an GLSurfaceView and draw something in OnDrawFrame(GL10 gl)
  like below</p>
  
  <pre><code>    void OnDrawFrame(GL10 gl)
      {
           frame_limit_wait();
           game_logic();
           draw_game();
      }
  </code></pre>
  
  <p>Everything is good, but onething is strange, when drawing n-frame(Occur at GC_EXPLICIT/paused 92ms) will cause game a bit pause, in appplication it's ok, but not in a smooth game.</p>
  
  <p>Original game I was use SurfaceView and Thread update works and smooth.</p>
  
  <p>If add a line below draw_game() like 'system.gc()' it seems work but I feel a bit slow.
  Compare to another game engine, my game endinge is running slow.</p>
  
  <p>How to resolve the latency problem ?</p>
  
  <p>Edit : I have solved the issue.
  Just initial native Float Buffer once, and use put and position(0) to modify the Buffer content.</p>