mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-04-24 08:58:19 +00:00
uf
This commit is contained in:
@@ -9,12 +9,6 @@ public class U {
|
|||||||
|
|
||||||
r.writeCollectionFrames(new File("collection"), 1, 1024);
|
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);
|
System.exit(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,7 +41,6 @@ public class UFeatureMeta {
|
|||||||
public UFeatureMetaGenerator buildGenerator(CNG cng)
|
public UFeatureMetaGenerator buildGenerator(CNG cng)
|
||||||
{
|
{
|
||||||
UFeatureMetaGenerator g = new UFeatureMetaGenerator();
|
UFeatureMetaGenerator g = new UFeatureMetaGenerator();
|
||||||
g.setStyle(cng.getLeakStyle());
|
|
||||||
g.setScale(cng.getScale());
|
g.setScale(cng.getScale());
|
||||||
g.setOctaves(cng.getOct());
|
g.setOctaves(cng.getOct());
|
||||||
|
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ public class UniqueRenderer {
|
|||||||
private KList<NoiseStyle> sortedStyles = new KList<NoiseStyle>();
|
private KList<NoiseStyle> sortedStyles = new KList<NoiseStyle>();
|
||||||
private KList<InterpolationMethod> sortedInterpolators = new KList<InterpolationMethod>();
|
private KList<InterpolationMethod> sortedInterpolators = new KList<InterpolationMethod>();
|
||||||
int cores = Runtime.getRuntime().availableProcessors();
|
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)
|
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)
|
public void writeCollectionFrames(File folder, int fromId, int toId)
|
||||||
{
|
{
|
||||||
folder.mkdirs();
|
folder.mkdirs();
|
||||||
BurstExecutor burst = new BurstExecutor(executor, 10);
|
BurstExecutor burst = new BurstExecutor(executor, Math.min(toId - fromId, 1000));
|
||||||
burst.setMulticore(false);
|
burst.setMulticore(true);
|
||||||
AtomicInteger ai = new AtomicInteger(0);
|
AtomicInteger ai = new AtomicInteger(0);
|
||||||
int max = toId - fromId;
|
int max = toId - fromId;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user