aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormakamys <makamys@outlook.com>2022-06-08 00:15:38 +0200
committermakamys <makamys@outlook.com>2022-06-08 00:15:38 +0200
commit029743e04669bae6f0ebde630b3bdd5599254559 (patch)
tree6c51e5dccc13864a9a65def48371a5b0b5063c2b /src
parente91864da9812b04c0d39c1d0bea3bdfd093ea1ab (diff)
downloadNeodymium-029743e04669bae6f0ebde630b3bdd5599254559.tar.gz
Neodymium-029743e04669bae6f0ebde630b3bdd5599254559.tar.bz2
Neodymium-029743e04669bae6f0ebde630b3bdd5599254559.zip
add konfig for VRAM buffer size and GC rate
Diffstat (limited to 'src')
-rw-r--r--src/main/java/makamys/lodmod/LODMod.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/makamys/lodmod/LODMod.java b/src/main/java/makamys/lodmod/LODMod.java
index 4812b65..30b708e 100644
--- a/src/main/java/makamys/lodmod/LODMod.java
+++ b/src/main/java/makamys/lodmod/LODMod.java
@@ -63,6 +63,8 @@ public class LODMod
public static boolean optimizeChunkMeshes;
public static int maxMeshesPerFrame;
public static int sortFrequency;
+ public static int gcRate;
+ public static int VRAMSize;
private File configFile;
@@ -109,6 +111,8 @@ public class LODMod
saveMeshes = config.getBoolean("saveMeshes", "render", false, "");
maxMeshesPerFrame = config.getInt("maxMeshesPerFrame", "render", -1, -1, Integer.MAX_VALUE, "");
sortFrequency = config.getInt("sortFrequency", "render", 1, 1, Integer.MAX_VALUE, "");
+ gcRate = config.getInt("gcRate", "render", 1, 1, Integer.MAX_VALUE, "Maximum number of meshes to relocate each frame.");
+ VRAMSize = config.getInt("VRAMSize", "render", 1, 1, Integer.MAX_VALUE, "VRAM buffer size.");
if(config.hasChanged()) {
config.save();