Class HardwareScalingOptimization
Hierarchy (View Summary)
- SceneOptimization
- HardwareScalingOptimization
Index
Constructors
constructor
-
new HardwareScalingOptimization(
priority?: number,
maximumScale?: number,
step?: number,
): HardwareScalingOptimizationCreates the HardwareScalingOptimization object
Parameters
- priority: number = 0
defines the priority of this optimization (0 by default which means first in the list)
- maximumScale: number = 2
defines the maximum scale to use (2 by default)
- step: number = 0.25
defines the step to use between two passes (0.5 by default)
Returns HardwareScalingOptimization
- priority: number = 0
Properties
maximum Scale
[2] Defines the maximum scale to use (2 by default)
priority
[0] Defines the priority of this optimization (0 by default which means first in the list)
step
[0.25] Defines the step to use between two passes (0.5 by default)
Methods
apply
-
This function will be called by the SceneOptimizer when its priority is reached in order to apply the change required by the current optimization
Parameters
- scene: Scene
defines the current scene where to apply this optimization
- optimizer: SceneOptimizer
defines the current optimizer
Returns boolean
true if everything that can be done was applied
- scene: Scene
get Description
-
Gets a string describing the action executed by the current optimization
Returns string
description string
Defines an optimization used to increase or decrease the rendering resolution
Description
More details at https://doc.babylonjs.com/features/featuresDeepDive/scene/sceneOptimizer