mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-19 09:39:25 -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()) {
|
if (PREF_CUSTOM_JAVA_ARGS.isEmpty()) {
|
||||||
String DEFAULT_JAVA_ARGS =
|
String DEFAULT_JAVA_ARGS =
|
||||||
"-Xms" + androidHeap + "m " +
|
"-Xms" + androidHeap + "m " +
|
||||||
// More than 900mb may make JVM not allocateable and crash
|
// More than 800mb may make JVM not allocateable and crash
|
||||||
"-Xmx" + (doubleAndroidHeap > 900 ? 900 : doubleAndroidHeap) + "m " +
|
"-Xmx" + (doubleAndroidHeap > 800 ? 800 : doubleAndroidHeap) + "m " +
|
||||||
"-XX:+UseG1GC " +
|
"-XX:+UseG1GC " +
|
||||||
// "-Dsun.rmi.dgc.server.gcInterval=2147483646 " +
|
// "-Dsun.rmi.dgc.server.gcInterval=2147483646 " +
|
||||||
"-XX:+UnlockExperimentalVMOptions " +
|
"-XX:+UnlockExperimentalVMOptions " +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user