public void drawFramerateGraph(Graphics g, ArrayList<Integer> rates, int xOffset, int yOffset, int xScale, int yScale) {

		Polygon poly = new Polygon();
		
		for(int i = 0; i < rates.size(); i++) {
			int rate = rates.get(i) > 90 ? 90 : rates.get(i);
			poly.addPoint(xOffset + (i * xScale), yOffset + (rate * yScale));
		}
		
		g.drawPolyline(poly.xpoints, poly.ypoints, poly.npoints);
	}