$ 0 0 It causes an NPE on the GL2 object here. I found that if you do gl = pgl.beginPGL().gl.getGL2(); again on draw when switching frameRate it works.