From 053881be66e9999e184b69b4966f4a69d8d55864 Mon Sep 17 00:00:00 2001 From: paypay-a <78337764+paypay-a@users.noreply.github.com> Date: Thu, 30 May 2024 18:27:19 -0500 Subject: [PATCH] just some hopes and dreams (and also maybe add a default memory argument for the quest 1 (less manual work :) ) --- src/main/java/pojlib/util/JREUtils.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/pojlib/util/JREUtils.java b/src/main/java/pojlib/util/JREUtils.java index 8e330c53..8b493127 100644 --- a/src/main/java/pojlib/util/JREUtils.java +++ b/src/main/java/pojlib/util/JREUtils.java @@ -189,6 +189,9 @@ public static int launchJavaVM(final Activity activity, final List JVMAr if (API_V1.model.equals("Meta Quest Pro") || API_V1.model.equals("Oculus Headset1")) { userArgs.add("-Xms" + 2048 + "M"); userArgs.add("-Xmx" + 3072 + "M"); + } elseif (API_v1.model.equals("Oculus Quest")) { + userArgs.add("-Xms" + 1024 + "M"); + userArgs.add("-Xmx" + 1024 + "M"); } else { userArgs.add("-Xms" + 2048 + "M"); userArgs.add("-Xmx" + 2048 + "M");