comparison game/Engine.java @ 155:1ba6f56203f2

Disable FPS counter for now.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 11 Apr 2013 20:35:05 +0300
parents 48b91eabc029
children
comparison
equal deleted inserted replaced
154:48b91eabc029 155:1ba6f56203f2
756 756
757 widgets.paint(g2); 757 widgets.paint(g2);
758 758
759 759
760 // Frames per second counter 760 // Frames per second counter
761 /*
761 g2.setFont(G.fonts[1]); 762 g2.setFont(G.fonts[1]);
762 long currTime = new Date().getTime(); 763 long currTime = new Date().getTime();
763 g2.drawString("fps = "+ ((gameFrames * 1000) / (currTime - startTime)), G.screenDim.width - 120, 20); 764 g2.drawString("fps = "+ ((gameFrames * 1000) / (currTime - startTime)), G.screenDim.width - 120, 20);
764 765 */
765 gameFrames++; 766 gameFrames++;
766 } 767 }
767 768
768 public void startThreads() 769 public void startThreads()
769 { 770 {