2 * Sixth 3D engine. Author: Svjatoslav Agejenko.
3 * This project is released under Creative Commons Zero (CC0) license.
5 package eu.svjatoslav.sixth.e3d.gui;
8 * Timer task that updates view.
10 * Tries to keep constant FPS.
12 public class ViewUpdateTimerTask extends java.util.TimerTask {
14 public ViewPanel viewPanel;
16 public ViewUpdateTimerTask(final ViewPanel viewPanel) {
17 this.viewPanel = viewPanel;
22 viewPanel.ensureThatViewIsUpToDate();