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();