mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2026-04-21 01:57:08 -04:00
fix some roms could start minecraft because of the ram 900 seems on some devices to be to much
This commit is contained in:
@@ -34,8 +34,8 @@ public class LauncherPreferences
|
||||
if (PREF_CUSTOM_JAVA_ARGS.isEmpty()) {
|
||||
String DEFAULT_JAVA_ARGS =
|
||||
"-Xms" + androidHeap + "m " +
|
||||
// More than 900mb may make JVM not allocateable and crash
|
||||
"-Xmx" + (doubleAndroidHeap > 900 ? 900 : doubleAndroidHeap) + "m " +
|
||||
// More than 800mb may make JVM not allocateable and crash
|
||||
"-Xmx" + (doubleAndroidHeap > 800 ? 800 : doubleAndroidHeap) + "m " +
|
||||
"-XX:+UseG1GC " +
|
||||
// "-Dsun.rmi.dgc.server.gcInterval=2147483646 " +
|
||||
"-XX:+UnlockExperimentalVMOptions " +
|
||||
|
||||
Reference in New Issue
Block a user