Performance fixes part 1
This commit is contained in:
6
main.cpp
6
main.cpp
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user