Update core to a1.5.4, add experimental buffer timeout option

This commit is contained in:
James Seibel
2021-11-29 21:23:09 -06:00
parent d5740c5d7f
commit 2852bd91f9
5 changed files with 24 additions and 5 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ apply plugin: 'org.spongepowered.mixin'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
version = 'a1.5.3'
version = 'a1.5.4'
group = 'com.seibel.lod'
archivesBaseName = 'Distant-Horizons_1.16.5'
+1 -1
Submodule core updated: 73c041e02f...87bb4ae840
@@ -63,7 +63,7 @@ import net.minecraftforge.fml.config.ModConfig;
* This handles any configuration the user has access to.
* @author Leonardo Amato
* @author James Seibel
* @version 11-16-2021
* @version 11-29-2021
*/
@Mod.EventBusSubscriber
public class ForgeConfig
@@ -214,6 +214,7 @@ public class ForgeConfig
public final ForgeConfigSpec.BooleanValue alwaysDrawAtMaxQuality;
public final ForgeConfigSpec.EnumValue<VanillaOverdraw> vanillaOverdraw;
public final ForgeConfigSpec.EnumValue<GpuUploadMethod> gpuUploadMethod;
public final ForgeConfigSpec.IntValue gpuUploadTimeoutInMilleseconds;
public final ForgeConfigSpec.BooleanValue useExtendedNearClipPlane;
AdvancedGraphicsOption(ForgeConfigSpec.Builder builder)
@@ -245,6 +246,12 @@ public class ForgeConfig
+ IAdvancedGraphics.GPU_UPLOAD_METHOD_DESC)
.defineEnum("GPU Upload Method", IAdvancedGraphics.GPU_UPLOAD_METHOD_DEFAULT);
MinDefaultMax<Integer> minDefaultMax = IAdvancedGraphics.GPU_UPLOAD_TIMEOUT_IN_MILLISECONDS_DEFAULT;
gpuUploadTimeoutInMilleseconds = builder
.comment("\n\n"
+ IAdvancedGraphics.GPU_UPLOAD_TIMEOUT_IN_MILLISECONDS_DESC)
.defineInRange("GPU Upload Timeout in Milleseconds", minDefaultMax.defaultValue, minDefaultMax.minValue, minDefaultMax.maxValue);
// This is a temporary fix (like vanilla overdraw)
// hopefully we can remove both once we get individual chunk rendering figured out
useExtendedNearClipPlane = builder
@@ -39,7 +39,7 @@ import com.seibel.lod.forge.ForgeConfig;
/**
* @author James Seibel
* @version 11-16-2021
* @version 11-29-2021
*/
public class LodConfigWrapperSingleton implements ILodConfigWrapperSingleton
{
@@ -305,6 +305,18 @@ public class LodConfigWrapperSingleton implements ILodConfigWrapperSingleton
}
@Override
public int getGpuUploadTimeoutInMilliseconds()
{
return ForgeConfig.CLIENT.graphics.advancedGraphicsOption.gpuUploadTimeoutInMilleseconds.get();
}
@Override
public void setGpuUploadTimeoutInMilliseconds(int newTimeoutInMilliseconds)
{
ForgeConfig.CLIENT.graphics.advancedGraphicsOption.gpuUploadTimeoutInMilleseconds.set(newTimeoutInMilliseconds);
}
@Override
public boolean getUseExtendedNearClipPlane()
{
+1 -1
View File
@@ -24,7 +24,7 @@ modId="lod" #mandatory
#// The version number of the mod - there's a few well known ${} variables useable here or just hardcode it
#//${file.jarVersion} will substitute the value of the Implementation-Version as read from the mod's JAR file metadata
#// see the associated build.gradle script for how to populate this completely automatically during a build
version="a1.5.3" #mandatory
version="a1.5.4" #mandatory
#// A display name for the mod
displayName="Distant Horizons" #mandatory