From 068eff5d139f6b09c00b9ff5573ede5ccaa0ffac Mon Sep 17 00:00:00 2001 From: schmelczerandras Date: Sat, 31 Oct 2020 16:02:26 +0100 Subject: [PATCH] Fix autoscaler bug --- src/graphics/rendering/fps-quality-autoscaler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graphics/rendering/fps-quality-autoscaler.ts b/src/graphics/rendering/fps-quality-autoscaler.ts index bebffed..7b43665 100644 --- a/src/graphics/rendering/fps-quality-autoscaler.ts +++ b/src/graphics/rendering/fps-quality-autoscaler.ts @@ -66,8 +66,8 @@ export class FpsQualityAutoscaler { if (this.fps >= FpsQualityAutoscaler.fpsTarget + this.fpsHysteresis) { this.distanceScale = this.distanceScale + 0.1; this.lightsScale = this.lightsScale + 0.1; - } else if (this.fps <= FpsQualityAutoscaler.fpsTarget + this.fpsHysteresis) { - this.distanceScale = this.distanceScale / 1.5; + } else if (this.fps <= FpsQualityAutoscaler.fpsTarget - this.fpsHysteresis) { + this.distanceScale = this.distanceScale / 1.25; this.lightsScale = this.lightsScale / 1.5; }