Commits

Michael Ludwig  committed 1cd4bf0

Fix timing detection for processing phases.

  • Participants
  • Parent commits 692cc40

Comments (0)

Files changed (1)

File src/main/java/com/lhkbob/entreri/ControllerManager.java

     }
     
     private void firePreProcess(double dt) {
+        lastProcessTime = System.nanoTime();
+
         for (int i = 0; i < controllers.size(); i++) {
             long start = System.nanoTime();
             controllers.get(i).preProcess(dt);
             profile.get(controllers.get(i)).postprocessTime = System.nanoTime() - start;
         }
         
-        lastProcessTime = System.nanoTime();
         singletonResults.clear();
     }