Performance fixes part 1

This commit is contained in:
2022-10-29 14:20:24 -04:00
parent 8cde72f632
commit 8365b148d0
2 changed files with 9 additions and 9 deletions

View File

@@ -39,9 +39,9 @@ void display()
glBegin(GL_QUADS);
for(int x = 0; x < 128; x++)
for(int x = 0; x < 64; x++)
{
for(int z = 0; z < 128; z++)
for(int z = 0; z < 64; z++)
{
for(int y = 0; y < 256; y++)
{
@@ -176,7 +176,7 @@ int main(int argc, char **argv)
{
for(int y = 0; y < 16; y++)
{
blockManager.mapBlocks[bx][bz].addNode(rand() % 3, 0, x, y, z);
blockManager.mapBlocks[bx][bz].addNode(1, 0, x, y, z);
//printf("\nGet node at: %i\n Is air: %i", nodeManager.getNodeAt(x, y + 1, z) == 0, nodeManager.isAir(x, y + 1, z));
}
}