mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-13 19:39:04 +07:00
Removed all extra floor rendering for larger worlds
This commit is contained in:
parent
0a6f7ac817
commit
9f84b84819
@ -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();
|
||||
|
||||
|
@ -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){
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user