Class HardwareScalingOptimization
Hierarchy
- SceneOptimization
- HardwareScalingOptimization
Index
Constructors
constructor
Creates the HardwareScalingOptimization object
Parameters
Optional priority: number
defines the priority of this optimization (0 by default which means first in the list)
Optional maximumScale: number
defines the maximum scale to use (2 by default)
Optional step: number
defines the step to use between two passes (0.5 by default)
Returns HardwareScalingOptimization
Properties
maximum ScaleSearch playground for maximumScale
Defines the maximum scale to use (2 by default)
prioritySearch playground for priority
Defines the priority of this optimization (0 by default which means first in the list)
stepSearch playground for step
Defines the step to use between two passes (0.5 by default)
Methods
applySearch playground for 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
get DescriptionSearch playground for getDescription
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
More details at https://doc.babylonjs.com/how_to/how_to_use_sceneoptimizer