mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-27 02:59:06 +00:00
Experimental Speedy things with New java
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user