mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-17 08:35:37 -04:00
new eXperimental option: disable VBO
This commit is contained in:
parent
fdc4a86dc9
commit
4219779ce4
@ -35,6 +35,7 @@ public class LauncherPreferences
|
|||||||
public static int PREF_CONTROL_LEFT_OFFSET = 0;
|
public static int PREF_CONTROL_LEFT_OFFSET = 0;
|
||||||
public static boolean PREF_SUSTAINED_PERFORMANCE = false;
|
public static boolean PREF_SUSTAINED_PERFORMANCE = false;
|
||||||
public static String PREF_GLES_SHRINK_HACK = "0";
|
public static String PREF_GLES_SHRINK_HACK = "0";
|
||||||
|
public static boolean PREF_VBO_DISABLE_HACK = false;
|
||||||
|
|
||||||
|
|
||||||
public static void loadPreferences(Context ctx) {
|
public static void loadPreferences(Context ctx) {
|
||||||
@ -65,6 +66,7 @@ public class LauncherPreferences
|
|||||||
PREF_CONTROL_LEFT_OFFSET = DEFAULT_PREF.getInt("controlLeftOffset", 0);
|
PREF_CONTROL_LEFT_OFFSET = DEFAULT_PREF.getInt("controlLeftOffset", 0);
|
||||||
PREF_SUSTAINED_PERFORMANCE = DEFAULT_PREF.getBoolean("sustainedPerformance", false);
|
PREF_SUSTAINED_PERFORMANCE = DEFAULT_PREF.getBoolean("sustainedPerformance", false);
|
||||||
PREF_GLES_SHRINK_HACK = DEFAULT_PREF.getString("gl4es_shrink_hack", "0");
|
PREF_GLES_SHRINK_HACK = DEFAULT_PREF.getString("gl4es_shrink_hack", "0");
|
||||||
|
PREF_VBO_DISABLE_HACK = DEFAULT_PREF.getBoolean("vbo_disable_hack", false);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
if (PREF_CUSTOM_JAVA_ARGS.isEmpty()) {
|
if (PREF_CUSTOM_JAVA_ARGS.isEmpty()) {
|
||||||
|
@ -5,6 +5,7 @@ import static net.kdt.pojavlaunch.Architecture.archAsString;
|
|||||||
import static net.kdt.pojavlaunch.Architecture.is64BitsDevice;
|
import static net.kdt.pojavlaunch.Architecture.is64BitsDevice;
|
||||||
import static net.kdt.pojavlaunch.Tools.LOCAL_RENDERER;
|
import static net.kdt.pojavlaunch.Tools.LOCAL_RENDERER;
|
||||||
import static net.kdt.pojavlaunch.prefs.LauncherPreferences.PREF_GLES_SHRINK_HACK;
|
import static net.kdt.pojavlaunch.prefs.LauncherPreferences.PREF_GLES_SHRINK_HACK;
|
||||||
|
import static net.kdt.pojavlaunch.prefs.LauncherPreferences.PREF_VBO_DISABLE_HACK;
|
||||||
|
|
||||||
import android.app.*;
|
import android.app.*;
|
||||||
import android.content.*;
|
import android.content.*;
|
||||||
@ -211,6 +212,9 @@ public class JREUtils {
|
|||||||
|
|
||||||
// The shrink hack can be enabled from the experimental settings
|
// The shrink hack can be enabled from the experimental settings
|
||||||
envMap.put("LIBGL_SHRINK", PREF_GLES_SHRINK_HACK);
|
envMap.put("LIBGL_SHRINK", PREF_GLES_SHRINK_HACK);
|
||||||
|
|
||||||
|
// VBO disable hack
|
||||||
|
if(PREF_VBO_DISABLE_HACK) envMap.put("LIBGL_USEVBO","0");
|
||||||
|
|
||||||
// Fix white color on banner and sheep, since GL4ES 1.1.5
|
// Fix white color on banner and sheep, since GL4ES 1.1.5
|
||||||
envMap.put("LIBGL_NORMALIZE", "1");
|
envMap.put("LIBGL_NORMALIZE", "1");
|
||||||
|
@ -279,8 +279,12 @@
|
|||||||
<string name="preference_sustained_performance_description">Limit thermal throttling by limiting peak performance</string>
|
<string name="preference_sustained_performance_description">Limit thermal throttling by limiting peak performance</string>
|
||||||
|
|
||||||
<string name="preference_back_title">Back to the last screen</string>
|
<string name="preference_back_title">Back to the last screen</string>
|
||||||
|
<string name="gles_hack_title">GL4ES Shrink hack</string>
|
||||||
<string name="gles_hack_none">Don\'t shrink textures</string>
|
<string name="gles_hack_none">Don\'t shrink textures</string>
|
||||||
<string name="gles_hack_always">Divides all textures by 2</string>
|
<string name="gles_hack_always">Divides all textures by 2</string>
|
||||||
<string name="gles_hack_sometimes">Divides big textures by /2 or /4</string>
|
<string name="gles_hack_sometimes">Divides big textures by /2 or /4</string>
|
||||||
|
|
||||||
|
<string name="vbo_hack_title">Disable VBOs</string>
|
||||||
|
<string name="vbo_hack_description">Help with compatibility on some old versions</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -5,12 +5,19 @@
|
|||||||
<PreferenceCategory android:title="Experimental fuckury">
|
<PreferenceCategory android:title="Experimental fuckury">
|
||||||
|
|
||||||
<androidx.preference.ListPreference
|
<androidx.preference.ListPreference
|
||||||
android:title="GL4ES Shrink hack"
|
android:title="@string/gles_hack_title"
|
||||||
android:key="gl4es_shrink_hack"
|
android:key="gl4es_shrink_hack"
|
||||||
android:defaultValue="0"
|
android:defaultValue="0"
|
||||||
android:entryValues="@array/hack_gles_shrink_values"
|
android:entryValues="@array/hack_gles_shrink_values"
|
||||||
android:entries="@array/hack_gles_shrink"
|
android:entries="@array/hack_gles_shrink"
|
||||||
app2:useSimpleSummaryProvider="true"/>
|
app2:useSimpleSummaryProvider="true"/>
|
||||||
|
|
||||||
|
<SwitchPreference
|
||||||
|
android:title="@string/vbo_hack_title"
|
||||||
|
android:summary="@string/vbo_hack_description"
|
||||||
|
android:defaultValue="false"
|
||||||
|
android:key="vbo_disable_hack"
|
||||||
|
/>
|
||||||
|
|
||||||
</PreferenceCategory>
|
</PreferenceCategory>
|
||||||
</PreferenceScreen>
|
</PreferenceScreen>
|
Loading…
x
Reference in New Issue
Block a user