code: public void setFPS(double frequency) {
  		if (frequency > MAX_FREQUENCY) {
  			frequency = MAX_FREQUENCY;
  		}
  		if (frequency < MIN_FREQUENCY) {
  			frequency = MIN_FREQUENCY;
  		}
  		this.frequency = frequency;
  	}
docs: Set rendering frequency (in Hz or FPS). Minimum frequency is 0.016 (1
  frame per minute) and maximum is 25 (25 frames per second).
  
  @param frequency the frequency