public void setTickTime(int ups) {
		if (this.tickTimer != null && this.tickTimer.isRunning()) this.tickTimer.stop();
		this.tickTimer = new Timer(1000 / ups, new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				if (isRunning) onTick(1);
			}
		});
		this.tickTimer.start();
	}