Update core and fix it to work

This commit is contained in:
tom lee
2021-12-29 22:21:52 +08:00
parent bfbf987599
commit 7d6a49c8b0
3 changed files with 9 additions and 9 deletions
+1 -1
Submodule core updated: 96be86cacf...8b3404e5f8
@@ -382,7 +382,7 @@ public class ForgeConfig
{
public final ForgeConfigSpec.EnumValue<GpuUploadMethod> gpuUploadMethod;
public final ForgeConfigSpec.IntValue gpuUploadTimeoutInMilleseconds;
public final ForgeConfigSpec.IntValue gpuUploadPerMegabyteInMilliseconds;
public final ForgeConfigSpec.EnumValue<BufferRebuildTimes> rebuildTimes;
Buffers(ForgeConfigSpec.Builder builder)
@@ -394,10 +394,10 @@ public class ForgeConfig
+ IBuffers.GPU_UPLOAD_METHOD_DESC)
.defineEnum("GPU Upload Method", IBuffers.GPU_UPLOAD_METHOD_DEFAULT);
MinDefaultMax<Integer> minDefaultMax = IBuffers.GPU_UPLOAD_TIMEOUT_IN_MILLISECONDS_DEFAULT;
gpuUploadTimeoutInMilleseconds = builder
MinDefaultMax<Integer> minDefaultMax = IBuffers.GPU_UPLOAD_PER_MEGABYTE_IN_MILLISECONDS_DEFAULT;
gpuUploadPerMegabyteInMilliseconds = builder
.comment("\n\n"
+ IBuffers.GPU_UPLOAD_TIMEOUT_IN_MILLISECONDS_DESC)
+ IBuffers.GPU_UPLOAD_PER_MEGABYTE_IN_MILLISECONDS_DESC)
.defineInRange("GPU Upload Timeout in Milleseconds", minDefaultMax.defaultValue, minDefaultMax.minValue, minDefaultMax.maxValue);
@@ -474,14 +474,14 @@ public class LodConfigWrapperSingleton implements ILodConfigWrapperSingleton
@Override
public int getGpuUploadTimeoutInMilliseconds()
public int getGpuUploadPerMegabyteInMilliseconds()
{
return ForgeConfig.CLIENT.advanced.buffers.gpuUploadTimeoutInMilleseconds.get();
return ForgeConfig.CLIENT.advanced.buffers.gpuUploadPerMegabyteInMilliseconds.get();
}
@Override
public void setGpuUploadTimeoutInMilliseconds(int newTimeoutInMilliseconds)
public void setGpuUploadPerMegabyteInMilliseconds(int newTimeoutInMilliseconds)
{
ForgeConfig.CLIENT.advanced.buffers.gpuUploadTimeoutInMilleseconds.set(newTimeoutInMilliseconds);
ForgeConfig.CLIENT.advanced.buffers.gpuUploadPerMegabyteInMilliseconds.set(newTimeoutInMilliseconds);
}