diff --git a/src/main/java/com/seibel/lod/render/LodRenderer.java b/src/main/java/com/seibel/lod/render/LodRenderer.java index 0b69e952b..3f1d4d53c 100644 --- a/src/main/java/com/seibel/lod/render/LodRenderer.java +++ b/src/main/java/com/seibel/lod/render/LodRenderer.java @@ -74,19 +74,6 @@ public class LodRenderer * it should be something different than what is used by Minecraft */ private static final int LOD_GL_LIGHT_NUMBER = GL11.GL_LIGHT2; - - /** - * 64 MB by default is the maximum amount of memory that - * can be directly allocated.

- *

- * I know there are commands to change that amount - * (specifically "-XX:MaxDirectMemorySize"), but - * I have no idea how to access that amount.
- * So I guess this will be the hard limit for now.

- *

- * https://stackoverflow.com/questions/50499238/bytebuffer-allocatedirect-and-xmx - */ - public static final int MAX_ALOCATEABLE_DIRECT_MEMORY = 64 * 1024 * 1024; /** * If true the LODs colors will be replaced with diff --git a/src/main/java/com/seibel/lod/util/LodUtil.java b/src/main/java/com/seibel/lod/util/LodUtil.java index 1a67a0dd1..78bf65bde 100644 --- a/src/main/java/com/seibel/lod/util/LodUtil.java +++ b/src/main/java/com/seibel/lod/util/LodUtil.java @@ -21,10 +21,8 @@ import java.awt.Color; import java.io.File; import java.util.HashSet; -import com.seibel.lod.config.LodConfig; import com.seibel.lod.enums.LodTemplate; import com.seibel.lod.objects.LodDimension; -import com.seibel.lod.objects.LodRegion; import com.seibel.lod.objects.RegionPos; import com.seibel.lod.wrappers.MinecraftWrapper; @@ -110,6 +108,21 @@ public class LodUtil * (and by extension mac and linux) file path */ public static final String INVALID_FILE_CHARACTERS_REGEX = "[\\\\\\/:*?\\\"<>|]"; + /** + * 64 MB by default is the maximum amount of memory that + * can be directly allocated.

+ *

+ * I know there are commands to change that amount + * (specifically "-XX:MaxDirectMemorySize"), but + * I have no idea how to access that amount.
+ * So I guess this will be the hard limit for now.

+ *

+ * https://stackoverflow.com/questions/50499238/bytebuffer-allocatedirect-and-xmx + */ + public static final int MAX_ALOCATEABLE_DIRECT_MEMORY = 64 * 1024 * 1024; + + +