Options
All
  • Public
  • Public/Protected
  • All
Menu

Defines a list of options used by SceneOptimizer

description

More details at https://doc.babylonjs.com/how_to/how_to_use_sceneoptimizer

Hierarchy

  • SceneOptimizerOptions

Index

Constructors

  • Creates a new list of options used by SceneOptimizer

    Parameters

    • Optional targetFrameRate: number

      defines the target frame rate to reach (60 by default)

    • Optional trackerDuration: number

      defines the interval between two checks (2000ms by default)

    Returns SceneOptimizerOptions

Properties

optimizations: SceneOptimization[]

Gets the list of optimizations to apply

targetFrameRate: number

Defines the target frame rate to reach (60 by default)

trackerDuration: number

Defines the interval between two checks (2000ms by default)

Methods

  • Add a new custom optimization

    Parameters

    • onApply: (scene: Scene, optimizer: SceneOptimizer) => boolean

      defines the callback called to apply the custom optimization (true if everything that can be done was applied)

    • onGetDescription: () => string

      defines the callback called to get the description attached with the optimization.

        • (): string
        • Returns string

    • Optional priority: number

      defines the priority of this optimization (0 by default which means first in the list)

    Returns SceneOptimizerOptions

    the current SceneOptimizerOptions

  • Add a new optimization

    Parameters

    • optimization: SceneOptimization

      defines the SceneOptimization to add to the list of active optimizations

    Returns SceneOptimizerOptions

    the current SceneOptimizerOptions

  • Creates a list of pre-defined optimizations aimed to have a big impact on the scene visual

    Parameters

    • Optional targetFrameRate: number

      defines the target frame rate (60 by default)

    Returns SceneOptimizerOptions

    a SceneOptimizerOptions object

  • Creates a list of pre-defined optimizations aimed to reduce the visual impact on the scene

    Parameters

    • Optional targetFrameRate: number

      defines the target frame rate (60 by default)

    Returns SceneOptimizerOptions

    a SceneOptimizerOptions object

  • Creates a list of pre-defined optimizations aimed to have a moderate impact on the scene visual

    Parameters

    • Optional targetFrameRate: number

      defines the target frame rate (60 by default)

    Returns SceneOptimizerOptions

    a SceneOptimizerOptions object

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited constructor
  • Static method

Settings

Theme