Faster caching

This commit is contained in:
Daniel Mills
2020-09-12 01:44:54 -04:00
parent 9272765f3c
commit 11cab800e3
11 changed files with 121 additions and 292 deletions

View File

@@ -124,7 +124,6 @@ public class IrisVision extends JPanel implements MouseWheelListener
public BufferedImage getTile(KSet<BlockPosition> fg, int div, int x, int z, O<Integer> m)
{
Iris.proj.getCurrentProject().getCache().targetChunk(x, z);
BlockPosition key = new BlockPosition((int) mscale, Math.floorDiv(x, div), Math.floorDiv(z, div));
fg.add(key);

View File

@@ -81,7 +81,7 @@ public class PregenGui extends JPanel
g.drawString(i, 20, hh += h);
}
J.sleep((long) 1);
J.sleep((long) 1000);
repaint();
}