Table of Contents

Method GetDeviceMemoryTier

Namespace
Titipi.MocaLib2

GetDeviceMemoryTier(int, int)

Classifies the device into a DeviceMemoryTier from its system RAM (SystemInfo.systemMemorySize, in MB). RAM is the only signal — CPU/GPU performance is not considered, so treat this as a memory bucket, not an overall speed rating. Note: on Android this under-reports physical RAM (OS-reserved memory is excluded), so a nominally 4GB device often reports ~3600MB — the default cutoffs account for that.

public static DeviceMemoryTier GetDeviceMemoryTier(int lowMaxMB = 3072, int midMaxMB = 6144)

Parameters

lowMaxMB int

RAM at or below this is Low (default 3072 = ~3GB).

midMaxMB int

RAM at or below this, but above lowMaxMB, is Mid (default 6144 = ~6GB).

Returns

DeviceMemoryTier