Skip to content

Commit

Permalink
Raise postRender event after afterRender functions are called
Browse files Browse the repository at this point in the history
  • Loading branch information
ggetz committed Feb 27, 2018
1 parent d3e878d commit 15bcba7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/Scene/Scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -3060,13 +3060,16 @@ define([
// Render
this._preRender.raiseEvent(this, time);
tryAndCatchError(this, time, render);
this._postRender.raiseEvent(this, time);

RequestScheduler.update();
}

updateDebugShowFramesPerSecond(this, shouldRender);
callAfterRenderFunctions(this);

if (shouldRender) {
this._postRender.raiseEvent(this, time);
}
};

/**
Expand Down

0 comments on commit 15bcba7

Please sign in to comment.