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:
Jyotiraditya
2024-07-06 18:22:49 +02:00
committed by Arijit78
parent dcf6a5bd9c
commit 2c6d485c69

View File

@@ -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);