This commit is contained in:
Moulberry committed 2024-08-31 13:28:18 +08:00
1 parent 60f19e7662
commit fcf1b4168f
26 files changed
+489 -65

No files matched your search

@@ -72,6 +72,8 @@ public class ExportJob {
private long encodeTimeNanos = 0;
private long downloadTimeNanos = 0;
private double currentTickDouble = 0.0;
private double audioSamples = 0.0;
private final AtomicBoolean finishedServerTick = new AtomicBoolean(false);
@@ -101,6 +103,10 @@ public class ExportJob {
return this.settings.resolutionY() * (this.settings.ssaa() ? 2 : 1);
}
public double getCurrentTickDouble() {
return this.currentTickDouble;
}
public Random getParticleRandom() {
return this.particleRandom;
}
@@ -189,7 +195,7 @@ public class ExportJob {
double lastTickDouble = 0;
for (int tickIndex = 0; tickIndex < ticks.size(); tickIndex++) {
double currentTickDouble = ticks.getDouble(tickIndex);
this.currentTickDouble = ticks.getDouble(tickIndex);
float deltaTicksFloat = (float)(currentTickDouble - lastTickDouble);
lastTickDouble = currentTickDouble;
int currentTick = (int) currentTickDouble;