mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-17 22:32:04 +00:00
Wire modes to engine
This commit is contained in:
@@ -93,7 +93,6 @@ public class IrisEngine implements Engine {
|
|||||||
private final ChronoLatch perSecondBudLatch;
|
private final ChronoLatch perSecondBudLatch;
|
||||||
private final EngineMetrics metrics;
|
private final EngineMetrics metrics;
|
||||||
private final boolean studio;
|
private final boolean studio;
|
||||||
private final KList<EngineStage> stages;
|
|
||||||
private final AtomicRollingSequence wallClock;
|
private final AtomicRollingSequence wallClock;
|
||||||
private final int art;
|
private final int art;
|
||||||
private EngineMode mode;
|
private EngineMode mode;
|
||||||
@@ -117,7 +116,6 @@ public class IrisEngine implements Engine {
|
|||||||
public IrisEngine(EngineTarget target, boolean studio) {
|
public IrisEngine(EngineTarget target, boolean studio) {
|
||||||
this.studio = studio;
|
this.studio = studio;
|
||||||
this.target = target;
|
this.target = target;
|
||||||
stages = new KList<>();
|
|
||||||
getEngineData();
|
getEngineData();
|
||||||
verifySeed();
|
verifySeed();
|
||||||
this.seedManager = new SeedManager(target.getWorld().getRawWorldSeed());
|
this.seedManager = new SeedManager(target.getWorld().getRawWorldSeed());
|
||||||
@@ -167,8 +165,6 @@ public class IrisEngine implements Engine {
|
|||||||
worldManager.close();
|
worldManager.close();
|
||||||
complex.close();
|
complex.close();
|
||||||
execution.close();
|
execution.close();
|
||||||
stages.forEach(EngineStage::close);
|
|
||||||
stages.clear();
|
|
||||||
effects.close();
|
effects.close();
|
||||||
mode.close();
|
mode.close();
|
||||||
|
|
||||||
@@ -395,10 +391,9 @@ public class IrisEngine implements Engine {
|
|||||||
getWorldManager().close();
|
getWorldManager().close();
|
||||||
getTarget().close();
|
getTarget().close();
|
||||||
saveEngineData();
|
saveEngineData();
|
||||||
stages.forEach(EngineStage::close);
|
|
||||||
stages.clear();
|
|
||||||
getMantle().close();
|
getMantle().close();
|
||||||
getComplex().close();
|
getComplex().close();
|
||||||
|
mode.close();
|
||||||
getData().dump();
|
getData().dump();
|
||||||
getData().clearLists();
|
getData().clearLists();
|
||||||
Iris.service(PreservationSVC.class).dereference();
|
Iris.service(PreservationSVC.class).dereference();
|
||||||
@@ -457,9 +452,7 @@ public class IrisEngine implements Engine {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (EngineStage i : stages) {
|
mode.generate(x, z, blocks, vbiomes, multicore);
|
||||||
i.generate(x, z, blocks, vbiomes, multicore);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
getMetrics().getTotal().put(p.getMilliseconds());
|
getMetrics().getTotal().put(p.getMilliseconds());
|
||||||
|
|||||||
Reference in New Issue
Block a user