fix some roms could start minecraft because of the ram 900 seems on some devices to be to much

This commit is contained in:
LegacyGamerHD 2020-09-27 18:52:23 +02:00 committed by GitHub
parent 597d973df7
commit 62a4c140f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 " +