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.
This commit is contained in:
SenseiKiwi 2013-07-25 23:54:30 -04:00
parent 43d5d6ea51
commit 984755f920

View file

@ -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)
{