Fix autoscaler bug
This commit is contained in:
parent
7803bbeaee
commit
068eff5d13
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue