separate status for post-initialization of systems
@@ -212,7 +212,6 @@ public void initialize() {
throw e;
}
-
double seconds = 0.001 * totalInitTime.elapsed(TimeUnit.MILLISECONDS);
logger.info("Initialization completed in {}sec.", String.format("%.2f", seconds));
}
@@ -265,6 +264,7 @@ private void initSubsystems() {
*/
private void postInitSubsystems() {
for (EngineSubsystem subsystem : getSubsystems()) {
+ changeStatus(() -> "Post-Initialising " + subsystem.getName() + " subsystem");
subsystem.postInitialise(rootContext);
}
}
@@ -397,7 +397,8 @@ public synchronized void run(GameState initialState) {
private void mainLoop() {
PerformanceMonitor.startActivity("Other");
// MAIN GAME LOOP
- while (tick()) { /* do nothing */ }
+ while (tick()) {
+ /* do nothing */ }
PerformanceMonitor.endActivity();
}
