diff --git a/core/src/main/java/com/seibel/distanthorizons/core/render/LodRenderSection.java b/core/src/main/java/com/seibel/distanthorizons/core/render/LodRenderSection.java index 082772eb8..23253fb17 100644 --- a/core/src/main/java/com/seibel/distanthorizons/core/render/LodRenderSection.java +++ b/core/src/main/java/com/seibel/distanthorizons/core/render/LodRenderSection.java @@ -60,6 +60,8 @@ public class LodRenderSection implements IDebugRenderable, AutoCloseable private static final ConcurrentHashMap RENDER_SOURCE_CLOSING_TIMER_TASK_BY_POS = new ConcurrentHashMap<>(); private static final Timer RENDER_SOURCE_CACHE_REMOVAL_TIMER = TimerUtil.CreateTimer("LodRenderSection Render Source Cache Removal Timer"); + public static final long RENDER_CACHE_EXPIRATION_TIME_IN_MS = 4000L; + public final DhSectionPos pos; @@ -237,7 +239,7 @@ public class LodRenderSection implements IDebugRenderable, AutoCloseable }); try { - RENDER_SOURCE_CACHE_REMOVAL_TIMER.schedule(timerTask, 1000L); + RENDER_SOURCE_CACHE_REMOVAL_TIMER.schedule(timerTask, RENDER_CACHE_EXPIRATION_TIME_IN_MS); } catch (IllegalStateException ignore) { /* can rarely happen due to some minor concurrency bug with how Timer works. It isn't an issue and can be ignored. */ }