From 984755f920c45b90917ff2770c53799099bebcd1 Mon Sep 17 00:00:00 2001 From: SenseiKiwi Date: Thu, 25 Jul 2013 23:54:30 -0400 Subject: [PATCH] Reduced Frequency of Fast Limbo Decay Operations Added an interval to CommonTickHandler so that fast decay operations are performed less frequency. The previous rate was unnecessarily fast. This will also reduce the performance impact of fast decay considerably, although testers did not report any noticeable performance decreases. --- StevenDimDoors/mod_pocketDim/CommonTickHandler.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/StevenDimDoors/mod_pocketDim/CommonTickHandler.java b/StevenDimDoors/mod_pocketDim/CommonTickHandler.java index 11988bd..5fee0a4 100644 --- a/StevenDimDoors/mod_pocketDim/CommonTickHandler.java +++ b/StevenDimDoors/mod_pocketDim/CommonTickHandler.java @@ -27,6 +27,7 @@ public class CommonTickHandler implements ITickHandler private static final int MAX_MONOLITH_SPAWN_Y = 245; private static final int CHUNK_SIZE = 16; private static final int RIFT_REGENERATION_INTERVAL = 100; //Regenerate random rifts every 100 ticks + private static final int LIMBO_DECAY_INTERVAL = 10; //Apply spread decay every 10 ticks public CommonTickHandler() { @@ -220,7 +221,10 @@ public class CommonTickHandler implements ITickHandler regenerateRifts(); } - LimboDecay.ApplyRandomFastDecay(); + if (tickCount % LIMBO_DECAY_INTERVAL == 0) + { + LimboDecay.ApplyRandomFastDecay(); + } if (mod_pocketDim.teleTimer > 0) {