public synchronized void paintComponent(Graphics g) {
		super.paintComponent(g);
		
		for(PaintCommand c : commands) {
			c.paint(g);
		}
		
		if(fpsCounter) {
			g.setColor(Color.black);
			g.drawString(parent.FPS + "", 20, 20);
		}
		
		commands.clear();
	}