$16.99 on Microsoft Store — Windows 10 / 11, one-time purchase, English & Chinese UI. Get it now →
Home / Blog / Performance

Texture memory on mobile: the arithmetic behind a 2 GB device

A 2048×2048 RGBA texture costs 16 MB before mipmaps. Here is how to turn a device tier into a texture budget, and where atlas size, mipmaps and compression actually spend it.

Key takeaways

  • Uncompressed RGBA costs 4 bytes per pixel; a 2048² texture is 16 MiB before mipmaps
  • Mipmaps add about one third, and the driver may allocate the whole chain even if you never sample it
  • A texture budget is a device-tier decision, not a per-asset decision

"The game runs fine on my phone" is the most expensive sentence in mobile development. Texture memory is usually the reason: it is allocated up front, it is invisible in a profiler that only watches CPU, and it fails on the devices you do not own.

Start with the arithmetic

An uncompressed RGBA8 texture costs 4 bytes per pixel. That is the whole formula, and it is worth doing once by hand:

TextureUncompressed RGBA8+ mipmaps (×1.33)ASTC 6×6
512 × 5121 MiB1.33 MiB0.12 MiB
1024 × 10244 MiB5.33 MiB0.47 MiB
2048 × 204816 MiB21.3 MiB1.86 MiB
4096 × 409664 MiB85.3 MiB7.45 MiB

Four 2048² atlases without compression already cost 64 MiB, or 85 MiB with mipmaps. On a 2 GB device, where the OS and the app's own heap take most of the memory, that is a meaningful fraction of everything you are allowed to use. The same four atlases in ASTC 6×6 cost about 7.4 MiB.

Turning a device tier into a budget

Do not budget per asset. Budget per tier, then divide. A workable starting point for a 2D or 2.5D game:

  • 2 GB devices: keep resident textures under 100–120 MiB, no atlas above 2048², and assume the low-memory killer is watching.
  • 4–6 GB devices: 200–250 MiB is realistic, 4096² atlases become possible but still cost load time.
  • 8 GB and up: the constraint moves from memory to download size and fill rate.

These are starting points, not standards. The number that matters is the one you measure on your own worst device, with the system reporting tools open, after playing for ten minutes — not at the main menu.

Where the budget actually goes

Three levers, in order of effect:

  1. Format. Going from RGBA8 to ASTC 6×6 is roughly a 9× reduction. Nothing else comes close.
  2. Dimensions. Halving width and height quarters the memory. A 2048² atlas that is 40% empty is a 1024² atlas waiting to be split.
  3. Residency. Loading a menu atlas during gameplay costs the same as a bigger atlas. Split by scene and unload explicitly.

Mipmaps are the awkward one: they add a third, and on tiled GPUs the full chain may be allocated regardless of sampling. For UI atlases that are always drawn at native resolution, disabling mipmaps is often the right call. For world textures that shrink with distance, they are not optional — without them you get shimmering that no amount of anisotropic filtering fixes.

The atlas-size trap

Bigger atlases reduce draw calls, which is why teams push everything into one 4096² sheet. The trade is real but frequently mispriced: a 4096² atlas loads entirely even if the current scene uses a tenth of it, and it fails outright on devices with a 2048 limit. Two 2048² atlases split by context usually beat one 4096² atlas on both memory peak and compatibility.

If a single atlas cannot fit in the budget after compression, the answer is almost always "split it", not "compress it harder".

A check you can run before shipping

  1. List every texture the build ships, with dimensions and format.
  2. Compute uncompressed and compressed sizes; compare the total with the tier budget.
  3. Mark anything above 2048² and justify it explicitly.
  4. Check that UI atlases do not carry unused regions — occupancy below 70% is a split candidate.
  5. Run the worst device for ten minutes with memory reporting on, and compare against the estimate. If they diverge, the estimate is wrong, not the device.

What this does not cover

Render targets, shadow maps and post-processing buffers also consume memory and are often larger than the texture set. This arithmetic only covers the assets you pack. It also assumes the driver does not pad the allocation — some do, which is another reason to measure rather than trust the table.

Related reading: mipmaps and platform limits, DDS and BC formats, and the Unity atlas workflow. For the batch tooling that produces these atlases, see the feature list and pricing.

Available on Microsoft Store

Install directly on Windows 10 / 11 (x64). Chinese and English UI included.

Get it fromMicrosoft Store