From 6ba6c6ee35b4001bbbd7401b8d0d4ef81b61f14d Mon Sep 17 00:00:00 2001 From: David Rowe Date: Sat, 9 Sep 2017 18:00:21 +1200 Subject: [PATCH] Reduce entity fade-in time --- libraries/shared/src/Interpolate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/shared/src/Interpolate.cpp b/libraries/shared/src/Interpolate.cpp index 35c164f0f2..cd595ee1ed 100644 --- a/libraries/shared/src/Interpolate.cpp +++ b/libraries/shared/src/Interpolate.cpp @@ -69,7 +69,7 @@ float Interpolate::simpleNonLinearBlend(float fraction) { } float Interpolate::calculateFadeRatio(quint64 start) { - const float FADE_TIME = 1.0f; + const float FADE_TIME = 0.5f; float t = 2.0f * std::min(((float)(usecTimestampNow() - start)) / ((float)(FADE_TIME * USECS_PER_SECOND)), 1.0f); float fadeRatio = (t < 1.0f) ? 0.5f * powf(2.0f, 10.0f * (t - 1.0f)) : 0.5f * (-powf(2.0f, -10.0f * (t - 1.0f)) + 2.0f);