Options
All
  • Public
  • Public/Protected
  • All
Menu

Defines an optimization used to reduce the size of render target textures

description

More details at https://doc.babylonjs.com/features/featuresDeepDive/scene/sceneOptimizer

Hierarchy

Index

Constructors

  • new TextureOptimization(priority?: number, maximumSize?: number, step?: number): TextureOptimization
  • Creates the TextureOptimization object

    Parameters

    • Optional priority: number

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

    • Optional maximumSize: number

      defines the maximum sized allowed for textures (1024 is the default value). If a texture is bigger, it will be scaled down using a factor defined by the step parameter

    • Optional step: number

      defines the factor (0.5 by default) used to scale down textures bigger than maximum sized allowed.

    Returns TextureOptimization

Properties

maximumSize: number

Defines the maximum sized allowed for textures (1024 is the default value). If a texture is bigger, it will be scaled down using a factor defined by the step parameter

priority: number

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

step: number

Defines the factor (0.5 by default) used to scale down textures bigger than maximum sized allowed.

Methods

  • 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

  • getDescription(): string
  • Gets a string describing the action executed by the current optimization

    Returns string

    description string

Legend

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

Settings

Theme