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:
parent
43d5d6ea51
commit
984755f920
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue