From d2e2935d90becd310076d21034badc1164cf56a4 Mon Sep 17 00:00:00 2001 From: "PSp..om" Date: Mon, 7 Nov 2011 00:25:29 +0000 Subject: [PATCH] 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 --- engine/src/core/com/jme3/app/Application.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/src/core/com/jme3/app/Application.java b/engine/src/core/com/jme3/app/Application.java index b39fa3aed..8dc9f71f6 100644 --- a/engine/src/core/com/jme3/app/Application.java +++ b/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;