LuciadRIA automatically monitors the memory usage of all layers.

It tries to give big datasets, such as tiled meshes, more memory than small datasets. It can use any memory that isn’t used to display screen content to cache data.

If it needs more data than allowed, LuciadRIA automatically decreases the amount of data by lowering the data detail wherever possible. This is temporary: it increases the detail again as soon as it’s possible.

Because browsers don’t advertise details about the machine running your application, LuciadRIA has a single default setting for allowed memory usage.

To make the most out of the hardware, you can influence the amount of CPU and GPU memory LuciadRIA uses with the maxMemoryUsageHint property and constructor option of WebGLMap.


By default, the memory limits are fairly conservative: 500 MB for CPU and 1000 MB for GPU.

These are our recommendations for selecting memory usage limits:

  • For low-end PCs and mobile devices, use around {cpuMB: 350, gpuMB: 750}.

  • For mid-range PCs and mobile devices, use around {cpuMB: 500, gpuMB: 1500}.

  • For high-end PCs, use around {cpuMB: 1000, gpuMB: 2500}.


These are more tips for making the most out of your hardware:

  • Remove unused layers from the map as soon as possible.

  • Make unused layers invisible if they’re temporarily unnecessary.