Default the application timer to NanoTimer. I did this

during construction so that the default JmeContext timer
could potentially still be used by calling app.setTimer(null)
from an apps main().  In that case, the previous behavior
of pulling the timer from JmeContext during init would happen.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8588 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
PSp..om 13 years ago
parent 15a37f86ef
commit d2e2935d90
  1. 3
      engine/src/core/com/jme3/app/Application.java

@ -59,6 +59,7 @@ import java.util.logging.Level;
import java.util.logging.Logger;
import com.jme3.system.JmeContext.Type;
import com.jme3.system.JmeSystem;
import com.jme3.system.NanoTimer;
import com.jme3.system.SystemListener;
import com.jme3.system.Timer;
@ -87,7 +88,7 @@ public class Application implements SystemListener {
protected JmeContext context;
protected AppSettings settings;
protected Timer timer;
protected Timer timer = new NanoTimer();
protected Camera cam;
protected Listener listener;

Loading…
Cancel
Save