Update for changed target frame period.

This commit is contained in:
Howard Stearns 2015-11-20 09:51:57 -08:00
parent 0f6a37f0f7
commit b5e5adc41e

View file

@ -135,6 +135,7 @@ void AvatarManager::updateOtherAvatars(float deltaTime) {
const float fps = qApp->getLastInstanteousFps();
const float paintWait = qApp->getLastPaintWait();
_renderDistanceController.setMeasuredValueSetpoint(1.0f / qApp->getTargetFramePeriod()); // No problem updating in flight.
// The PID controller raises the controlled value when the measured value goes up.
// The measured value is frame rate. When the controlled value (1 / render cutoff distance)
// goes up, the render cutoff distance gets closer, the number of rendered avatars is less, and frame rate