secs = (float) elapsed / 1000000000;
fps = Math.round((float)Application.frame()/secs);
text.setText(TexturedTriangles.count + " @ " + fps + " fps");
if ( fps != lastfps ) {
t1 = new Triangle();
t1.texture(Main.wood);
t1.vertices(0, fps, 0, 0, 0, 0, 1, fps, 0);
t1.texCoords(0,0,0,1,1,0);
t2 = new Triangle();
t2.texture(Main.wood);
t2.vertices(0, 0, 0, 1, 0, 0, 1, fps, 0);
t2.texCoords(0,1,1,1,1,0);
t1.appendChild(t2);
t1.moveRight(x);