mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-26 02:29:14 +00:00
uf
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user