Fix default generic rendering instanced mode
This commit is contained in:
@@ -574,11 +574,11 @@ public class Config
|
||||
+ "")
|
||||
.build();
|
||||
|
||||
public static ConfigEntry<Boolean> disableInstancedRendering = new ConfigEntry.Builder<Boolean>()
|
||||
public static ConfigEntry<Boolean> enableInstancedRendering = new ConfigEntry.Builder<Boolean>()
|
||||
.set(true)
|
||||
.comment(""
|
||||
+ "If true much slower but more compatible direct rendering will be used instead of instanced rendering. \n"
|
||||
+ "Can be used to fix some crashes on Mac. \n"
|
||||
+ "Can be disabled to use much slower but more compatible direct rendering. \n"
|
||||
+ "Disabling this can be used to fix some crashes on Mac. \n"
|
||||
+ "")
|
||||
.build();
|
||||
|
||||
|
||||
+1
-1
@@ -392,7 +392,7 @@ public class GenericObjectRenderer implements IDhApiCustomRenderRegister
|
||||
this.init();
|
||||
|
||||
boolean useInstancedRendering = this.instancedRenderingAvailable
|
||||
&& !Config.Client.Advanced.Graphics.GenericRendering.disableInstancedRendering.get();
|
||||
&& Config.Client.Advanced.Graphics.GenericRendering.enableInstancedRendering.get();
|
||||
|
||||
ApiEventInjector.INSTANCE.fireAllEvents(DhApiBeforeGenericRenderSetupEvent.class, renderEventParam);
|
||||
|
||||
|
||||
@@ -330,10 +330,10 @@
|
||||
"Enable Cloud Rendering",
|
||||
"distanthorizons.config.client.advanced.graphics.genericRendering.enableCloudRendering.@tooltip":
|
||||
"If true LOD clouds will be rendered.",
|
||||
"distanthorizons.config.client.advanced.graphics.genericRendering.disableInstancedRendering":
|
||||
"Disable Instanced Rendering",
|
||||
"distanthorizons.config.client.advanced.graphics.genericRendering.disableInstancedRendering.@tooltip":
|
||||
"If true much slower but more compatible direct rendering will be used instead of instanced rendering. \nCan be used to fix some crashes on Mac.",
|
||||
"distanthorizons.config.client.advanced.graphics.genericRendering.enableInstancedRendering":
|
||||
"Enable Instanced Rendering",
|
||||
"distanthorizons.config.client.advanced.graphics.genericRendering.enableInstancedRendering.@tooltip":
|
||||
"Can be disabled to use much slower but more compatible direct rendering. \nDisabling this can be used to fix some crashes on Mac.",
|
||||
|
||||
|
||||
"distanthorizons.config.client.advanced.worldGenerator":
|
||||
|
||||
Reference in New Issue
Block a user