mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-19 01:27:18 -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:
parent
597d973df7
commit
62a4c140f8
@ -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 " +
|
||||
|
Loading…
x
Reference in New Issue
Block a user