From 029743e04669bae6f0ebde630b3bdd5599254559 Mon Sep 17 00:00:00 2001 From: makamys Date: Wed, 8 Jun 2022 00:15:38 +0200 Subject: add konfig for VRAM buffer size and GC rate --- src/main/java/makamys/lodmod/LODMod.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main/java/makamys/lodmod') 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(); -- cgit