mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-18 14:50:57 +00:00
Experimental Speedy things with New java
This commit is contained in:
+1
-1
@@ -24,7 +24,7 @@ plugins {
|
|||||||
id "de.undercouch.download" version "5.0.1"
|
id "de.undercouch.download" version "5.0.1"
|
||||||
}
|
}
|
||||||
|
|
||||||
version '2.3.12-1.19.3' // Needs to be version specific
|
version '2.3.13-1.19.3' // Needs to be version specific
|
||||||
def nmsVersion = "1.19.3" //[NMS]
|
def nmsVersion = "1.19.3" //[NMS]
|
||||||
def apiVersion = '1.19'
|
def apiVersion = '1.19'
|
||||||
def specialSourceVersion = '1.11.0' //[NMS]
|
def specialSourceVersion = '1.11.0' //[NMS]
|
||||||
|
|||||||
@@ -31,8 +31,8 @@ import org.bukkit.block.Biome;
|
|||||||
import org.bukkit.block.data.BlockData;
|
import org.bukkit.block.data.BlockData;
|
||||||
|
|
||||||
public interface EngineMode extends Staged {
|
public interface EngineMode extends Staged {
|
||||||
public static final RollingSequence r = new RollingSequence(64);
|
RollingSequence r = new RollingSequence(64);
|
||||||
public static final RollingSequence r2 = new RollingSequence(256);
|
RollingSequence r2 = new RollingSequence(256);
|
||||||
|
|
||||||
void close();
|
void close();
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ import org.bukkit.World;
|
|||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class PlannedStructure {
|
public class PlannedStructure {
|
||||||
private static transient ConcurrentLinkedHashMap<String, IrisObject> objectRotationCache
|
private static ConcurrentLinkedHashMap<String, IrisObject> objectRotationCache
|
||||||
= new ConcurrentLinkedHashMap.Builder<String, IrisObject>()
|
= new ConcurrentLinkedHashMap.Builder<String, IrisObject>()
|
||||||
.initialCapacity(64)
|
.initialCapacity(64)
|
||||||
.maximumWeightedCapacity(1024)
|
.maximumWeightedCapacity(1024)
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ import lombok.experimental.Accessors;
|
|||||||
@Desc("Scale objects")
|
@Desc("Scale objects")
|
||||||
@Data
|
@Data
|
||||||
public class IrisObjectScale {
|
public class IrisObjectScale {
|
||||||
private static transient ConcurrentLinkedHashMap<IrisObject, KList<IrisObject>> cache
|
private static ConcurrentLinkedHashMap<IrisObject, KList<IrisObject>> cache
|
||||||
= new ConcurrentLinkedHashMap.Builder<IrisObject, KList<IrisObject>>()
|
= new ConcurrentLinkedHashMap.Builder<IrisObject, KList<IrisObject>>()
|
||||||
.initialCapacity(64)
|
.initialCapacity(64)
|
||||||
.maximumWeightedCapacity(1024)
|
.maximumWeightedCapacity(1024)
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ public enum IrisMatterPlacementLocation {
|
|||||||
|
|
||||||
private final Function3<IrisEngine, Integer, Integer, Integer> computer;
|
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;
|
this.computer = computer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ public class CachedStream2D<T> extends BasicStream<T> implements ProceduralStrea
|
|||||||
private final ProceduralStream<T> stream;
|
private final ProceduralStream<T> stream;
|
||||||
private final WorldCache2D<T> cache;
|
private final WorldCache2D<T> cache;
|
||||||
private final Engine engine;
|
private final Engine engine;
|
||||||
private boolean chunked = true;
|
private final boolean chunked = true;
|
||||||
|
|
||||||
public CachedStream2D(String name, Engine engine, ProceduralStream<T> stream, int size) {
|
public CachedStream2D(String name, Engine engine, ProceduralStream<T> stream, int size) {
|
||||||
super();
|
super();
|
||||||
|
|||||||
@@ -36,8 +36,8 @@ public class UniqueRenderer {
|
|||||||
private final KMap<String, String> writing = new KMap<>();
|
private final KMap<String, String> writing = new KMap<>();
|
||||||
private final ExecutorService executor = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors() * 2);
|
private final ExecutorService executor = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors() * 2);
|
||||||
int cores = Runtime.getRuntime().availableProcessors();
|
int cores = Runtime.getRuntime().availableProcessors();
|
||||||
private KList<NoiseStyle> sortedStyles = new KList<NoiseStyle>();
|
private final KList<NoiseStyle> sortedStyles = new KList<NoiseStyle>();
|
||||||
private KList<InterpolationMethod> sortedInterpolators = new KList<InterpolationMethod>();
|
private final KList<InterpolationMethod> sortedInterpolators = new KList<InterpolationMethod>();
|
||||||
|
|
||||||
public UniqueRenderer(String seed, int width, int height) {
|
public UniqueRenderer(String seed, int width, int height) {
|
||||||
renderer = this;
|
renderer = this;
|
||||||
|
|||||||
Reference in New Issue
Block a user