9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-26 18:49:06 +00:00
This commit is contained in:
cyberpwn
2022-06-25 16:16:53 -04:00
parent 7eac936431
commit 490d2b69e3
3 changed files with 3 additions and 10 deletions

View File

@@ -9,12 +9,6 @@ public class U {
r.writeCollectionFrames(new File("collection"), 1, 1024);
for(int i = 1; i <= 1024; i++)
{
r.writeAnimation(new File("collection/animation"), 2, 0, 32, 1);
}
System.exit(0);
}
}

View File

@@ -41,7 +41,6 @@ public class UFeatureMeta {
public UFeatureMetaGenerator buildGenerator(CNG cng)
{
UFeatureMetaGenerator g = new UFeatureMetaGenerator();
g.setStyle(cng.getLeakStyle());
g.setScale(cng.getScale());
g.setOctaves(cng.getOct());

View File

@@ -42,7 +42,7 @@ public class UniqueRenderer {
private KList<NoiseStyle> sortedStyles = new KList<NoiseStyle>();
private KList<InterpolationMethod> sortedInterpolators = new KList<InterpolationMethod>();
int cores = Runtime.getRuntime().availableProcessors();
private final ExecutorService executor = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors());
private final ExecutorService executor = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors() * 2);
public UniqueRenderer(String seed, int width, int height)
{
@@ -290,8 +290,8 @@ private void overlay(UImage layer, BufferedImage layerBuf, UImage onto)
public void writeCollectionFrames(File folder, int fromId, int toId)
{
folder.mkdirs();
BurstExecutor burst = new BurstExecutor(executor, 10);
burst.setMulticore(false);
BurstExecutor burst = new BurstExecutor(executor, Math.min(toId - fromId, 1000));
burst.setMulticore(true);
AtomicInteger ai = new AtomicInteger(0);
int max = toId - fromId;