public void renderFramerate(Graphics g, int x, int y) {
		int graphScale = 2;

		//Box behind
		g.setColor(Color.black);
		g.fillRect(x - 20, y - 10, (ThreadStats.maxSamples * graphScale) + 30, 90 * graphScale + 20);
		
		
		//Draw the indercators
		g.setColor(new Color(100,100,100));
		
		//0 FPS
		int ypnt = y;
		int xpnt = x;
		g.drawString("0  ", xpnt - 15, ypnt + 5);
		g.drawLine(xpnt, ypnt, xpnt + (ThreadStats.maxSamples * graphScale), ypnt);

		//30FPS
		ypnt = y + (30 * graphScale);
		g.drawString("30 ", xpnt - 15, ypnt + 5);
		g.drawLine(xpnt, ypnt, xpnt + (ThreadStats.maxSamples * graphScale), ypnt);
		
		//60FPS
		ypnt = y + (60 * graphScale);
		g.drawString("60 ", xpnt - 15, ypnt + 5);		
		g.drawLine(xpnt, ypnt, xpnt + (ThreadStats.maxSamples * graphScale), ypnt);
		
		//100FPS
		ypnt = y + (90 * graphScale);
		g.drawString("90", xpnt - 15, ypnt + 5);		
		g.drawLine(xpnt, ypnt, xpnt + (ThreadStats.maxSamples * graphScale), ypnt);
		
		//Render the graphs
		for(int i = 0; i < threadStats.size(); i++) {
			ThreadStats thread = threadStats.get(i);
			
			g.setColor(thread.color);
			drawFramerateGraph(g, thread.framerates, x, y, graphScale, graphScale);
			
			int framerate = thread.thread.framerate;
			String text = "- " + thread.thread.name + " [" + framerate + "]";
			g.drawString(text, x + 5 + (ThreadStats.maxSamples * graphScale), y + 4 + ((framerate > 90 ? 90 : framerate) * graphScale));
		}
		
	}