mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-04-08 16:56:25 +00:00
Speed up plax mgr
This commit is contained in:
@@ -30,6 +30,7 @@ import lombok.Data;
|
||||
import java.io.DataInputStream;
|
||||
import java.io.DataOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.util.concurrent.CopyOnWriteArrayList;
|
||||
import java.util.function.Function;
|
||||
|
||||
@AllArgsConstructor
|
||||
@@ -56,9 +57,9 @@ public class ParallaxChunkMeta {
|
||||
private int maxObject = -1;
|
||||
private int minObject = -1;
|
||||
private int count;
|
||||
private KList<IrisFeaturePositional> features;
|
||||
private CopyOnWriteArrayList<IrisFeaturePositional> features;
|
||||
|
||||
public ParallaxChunkMeta() {
|
||||
this(false, false, false, false, false, false, -1, -1, 0, new KList<>());
|
||||
this(false, false, false, false, false, false, -1, -1, 0, new CopyOnWriteArrayList<>());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -156,7 +156,6 @@ public class ParallaxRegion extends HunkRegion {
|
||||
}
|
||||
|
||||
public synchronized void save() throws IOException {
|
||||
PrecisionStopwatch p = PrecisionStopwatch.start();
|
||||
blockSlice.save();
|
||||
objectSlice.save();
|
||||
entitySlice.save();
|
||||
@@ -164,7 +163,6 @@ public class ParallaxRegion extends HunkRegion {
|
||||
updateSlice.save();
|
||||
saveMetaHunk();
|
||||
super.save();
|
||||
Iris.debug("Saved Parallax Region " + C.AQUA + getX() + "," + getZ() + C.LIGHT_PURPLE + " in " + C.RED + Form.duration(p.getMilliseconds(), 0));
|
||||
}
|
||||
|
||||
public int unload() {
|
||||
|
||||
Reference in New Issue
Block a user