Skip to content

Commit

Permalink
Added profile tracking to AppStateManager for render and post render. (
Browse files Browse the repository at this point in the history
  • Loading branch information
tlf30 authored Mar 22, 2021
1 parent 29f5872 commit 73cf6c3
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,9 @@ public void render(RenderManager rm){
AppState[] array = getStates();
for (AppState state : array){
if (state.isEnabled()) {
if (app.getAppProfiler() != null) {
app.getAppProfiler().appSubStep(state.getClass().getSimpleName());
}
state.render(rm);
}
}
Expand All @@ -377,6 +380,9 @@ public void postRender(){
AppState[] array = getStates();
for (AppState state : array){
if (state.isEnabled()) {
if (app.getAppProfiler() != null) {
app.getAppProfiler().appSubStep(state.getClass().getSimpleName());
}
state.postRender();
}
}
Expand Down

0 comments on commit 73cf6c3

Please sign in to comment.