Function: getGpuMemoryLimit()
getGpuMemoryLimit():
GpuMemoryLimit|undefined
The memory limit of auto, in GPU bytes of the page, in this order:
- a hard limit, used as it is:
hardMemoryBytesofrendering.autoGpuSettings, or a value the user set withhard: true. When both exist, the configuration wins. - else, the value the user set (see
setGpuMemoryLimit) - else,
startMemoryBytesofrendering.autoGpuSettings, the initial size that an application states - 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