This commit is contained in:
Brad Hefta-Gaub 2017-02-09 11:37:21 -08:00
parent 57e0dadd65
commit bb4654506a

View file

@ -306,12 +306,14 @@ bool Avatar::shouldDie() const {
}
void Avatar::simulate(float deltaTime, bool inView) {
PROFILE_RANGE(simulation, "simulate");
_simulationRate.increment();
if (inView) {
_simulationInViewRate.increment();
}
PROFILE_RANGE(simulation, "simulate");
PerformanceTimer perfTimer("simulate");
{
PROFILE_RANGE(simulation, "updateJoints");