Removed all extra floor rendering for larger worlds

This commit is contained in:
Anuken 2019-01-04 12:17:42 -05:00
parent 0a6f7ac817
commit 9f84b84819
3 changed files with 5 additions and 4 deletions

View File

@ -181,7 +181,7 @@ public class FloorRenderer{
if(floor.cacheLayer == layer){
floor.draw(tile);
}else if(floor.cacheLayer.ordinal() < layer.ordinal()){
floor.drawNonLayer(tile);
//floor.drawNonLayer(tile);
}
}
}
@ -195,7 +195,7 @@ public class FloorRenderer{
int chunksx = Mathf.ceil((float) (world.width()) / chunksize),
chunksy = Mathf.ceil((float) (world.height()) / chunksize) ;
cache = new Chunk[chunksx][chunksy];
cbatch = new CacheBatch(world.width() * world.height() * 4 * 4);
cbatch = new CacheBatch(world.width() * world.height());
Time.mark();

View File

@ -139,6 +139,7 @@ public class Floor extends Block{
Draw.rect(variantRegions[Mathf.randomSeed(tile.pos(), 0, Math.max(0, variantRegions.length - 1))], tile.worldx(), tile.worldy());
/*
if(tile.hasCliffs() && cliffRegions != null){
for(int i = 0; i < 4; i++){
if((tile.getCliffs() & (1 << i * 2)) != 0){
@ -160,7 +161,7 @@ public class Floor extends Block{
}
Draw.reset();
drawEdges(tile, false);
drawEdges(tile, false);*/
}
public boolean blendOverride(Block block){

View File

@ -37,7 +37,7 @@ public class OreBlock extends Floor{
public void draw(Tile tile){
Draw.rect(variantRegions[Mathf.randomSeed(tile.pos(), 0, Math.max(0, variantRegions.length - 1))], tile.worldx(), tile.worldy());
drawEdges(tile, false);
//drawEdges(tile, false);
}
@Override