mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_stone
synced 2026-01-27 17:18:49 +00:00
stone: libinit: Enable config_avoidGfxAccel for 4GB variants
- This flag turns off GPU/CPU intensive UI effects and reduces the RAM footprint. - Using this is a better compromise than the 'low_ram' flag as this does not disable features in the rom but still reduces RAM usage and gives better smoothness in the UI. Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
This commit is contained in:
@@ -58,6 +58,9 @@ void set_dalvik_heap() {
|
||||
else
|
||||
dhi = &dalvik_heap_info_4096;
|
||||
|
||||
if (sys.totalram < GB(5))
|
||||
property_override("ro.config.avoid_gfx_accel", "true");
|
||||
|
||||
property_override(HEAPSTARTSIZE_PROP, dhi->heapstartsize);
|
||||
property_override(HEAPGROWTHLIMIT_PROP, dhi->heapgrowthlimit);
|
||||
property_override(HEAPSIZE_PROP, dhi->heapsize);
|
||||
|
||||
Reference in New Issue
Block a user