|
@@ -32,6 +32,7 @@
|
|
package com.jme3.app.state;
|
|
package com.jme3.app.state;
|
|
|
|
|
|
import com.jme3.app.Application;
|
|
import com.jme3.app.Application;
|
|
|
|
+import com.jme3.profile.AppProfiler;
|
|
import com.jme3.renderer.RenderManager;
|
|
import com.jme3.renderer.RenderManager;
|
|
import com.jme3.util.SafeArrayList;
|
|
import com.jme3.util.SafeArrayList;
|
|
import java.util.Arrays;
|
|
import java.util.Arrays;
|
|
@@ -300,6 +301,9 @@ public class AppStateManager {
|
|
AppState[] array = getStates();
|
|
AppState[] array = getStates();
|
|
for (AppState state : array){
|
|
for (AppState state : array){
|
|
if (state.isEnabled()) {
|
|
if (state.isEnabled()) {
|
|
|
|
+ if (app.getAppProfiler() != null) {
|
|
|
|
+ app.getAppProfiler().appSubStep(state.getClass().getSimpleName());
|
|
|
|
+ }
|
|
state.update(tpf);
|
|
state.update(tpf);
|
|
}
|
|
}
|
|
}
|
|
}
|