9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-26 18:49:06 +00:00

Experimental Speedy things with New java

This commit is contained in:
Brian Fopiano
2022-12-28 13:23:00 -05:00
parent 78a4b1d2ce
commit b0c5700cf5
7 changed files with 9 additions and 9 deletions

View File

@@ -31,8 +31,8 @@ import org.bukkit.block.Biome;
import org.bukkit.block.data.BlockData;
public interface EngineMode extends Staged {
public static final RollingSequence r = new RollingSequence(64);
public static final RollingSequence r2 = new RollingSequence(256);
RollingSequence r = new RollingSequence(64);
RollingSequence r2 = new RollingSequence(256);
void close();

View File

@@ -33,7 +33,7 @@ import org.bukkit.World;
@Data
public class PlannedStructure {
private static transient ConcurrentLinkedHashMap<String, IrisObject> objectRotationCache
private static ConcurrentLinkedHashMap<String, IrisObject> objectRotationCache
= new ConcurrentLinkedHashMap.Builder<String, IrisObject>()
.initialCapacity(64)
.maximumWeightedCapacity(1024)

View File

@@ -37,7 +37,7 @@ import lombok.experimental.Accessors;
@Desc("Scale objects")
@Data
public class IrisObjectScale {
private static transient ConcurrentLinkedHashMap<IrisObject, KList<IrisObject>> cache
private static ConcurrentLinkedHashMap<IrisObject, KList<IrisObject>> cache
= new ConcurrentLinkedHashMap.Builder<IrisObject, KList<IrisObject>>()
.initialCapacity(64)
.maximumWeightedCapacity(1024)

View File

@@ -13,7 +13,7 @@ public enum IrisMatterPlacementLocation {
private final Function3<IrisEngine, Integer, Integer, Integer> computer;
private IrisMatterPlacementLocation(Function3<IrisEngine, Integer, Integer, Integer> computer) {
IrisMatterPlacementLocation(Function3<IrisEngine, Integer, Integer, Integer> computer) {
this.computer = computer;
}

View File

@@ -31,7 +31,7 @@ public class CachedStream2D<T> extends BasicStream<T> implements ProceduralStrea
private final ProceduralStream<T> stream;
private final WorldCache2D<T> cache;
private final Engine engine;
private boolean chunked = true;
private final boolean chunked = true;
public CachedStream2D(String name, Engine engine, ProceduralStream<T> stream, int size) {
super();

View File

@@ -36,8 +36,8 @@ public class UniqueRenderer {
private final KMap<String, String> writing = new KMap<>();
private final ExecutorService executor = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors() * 2);
int cores = Runtime.getRuntime().availableProcessors();
private KList<NoiseStyle> sortedStyles = new KList<NoiseStyle>();
private KList<InterpolationMethod> sortedInterpolators = new KList<InterpolationMethod>();
private final KList<NoiseStyle> sortedStyles = new KList<NoiseStyle>();
private final KList<InterpolationMethod> sortedInterpolators = new KList<InterpolationMethod>();
public UniqueRenderer(String seed, int width, int height) {
renderer = this;