Skip to main content

Function: getGpuMemoryLimit()

getGpuMemoryLimit(): GpuMemoryLimit | undefined

The memory limit of auto, in GPU bytes of the page, in this order:

  1. a hard limit, used as it is: hardMemoryBytes of rendering.autoGpuSettings, or a value the user set with hard: true. When both exist, the configuration wins.
  2. else, the value the user set (see setGpuMemoryLimit)
  3. else, startMemoryBytes of rendering.autoGpuSettings, the initial size that an application states
  4. else, the start of the device (see startMemoryBytes)

Nothing raises or lowers the limit by itself. A failure is recorded, and the user or the application picks a new limit.

Returns​

GpuMemoryLimit | undefined

the limit, or undefined when the GPU settings do not apply

Defined in​

packages/core/src/utilities/gpuSettingsPresets.ts:311