Skip to content

Commit

Permalink
Moved frameEndedEmitter after all other listeners, see #534
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Feb 3, 2019
1 parent 880c156 commit bf96d56
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/Sim.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,13 @@ define( function( require ) {
screen.view.step( dt );
}
this.display.updateDisplay( dt );
this.frameEndedEmitter.emit();

if ( phet.chipper.queryParameters.memoryLimit ) {
this.memoryMonitor.measure();
}
}
},

after: () => this.frameEndedEmitter.emit()
} );

if ( screens.length === 1 ) {
Expand Down

0 comments on commit bf96d56

Please sign in to comment.