tweak the tweak

This commit is contained in:
darkrose 2013-11-27 22:21:38 +10:00
parent 28c8ca440f
commit e32fa69ba5
1 changed files with 4 additions and 8 deletions

View File

@ -672,10 +672,8 @@ scene::SMesh* makeMapBlockMesh(MeshMakeData *data)
{ {
// 2-12ms for MAP_BLOCKSIZE=16 // 2-12ms for MAP_BLOCKSIZE=16
//TimeTaker timer2("updateMesh() collect"); //TimeTaker timer2("updateMesh() collect");
for (s16 x=0; x<MAP_BLOCKSIZE; x++) {
for (s16 y=0; y<MAP_BLOCKSIZE; y++) { for (s16 y=0; y<MAP_BLOCKSIZE; y++) {
for (s16 z=0; z<MAP_BLOCKSIZE; z++) { for (s16 z=0; z<MAP_BLOCKSIZE; z++) {
if (!x) {
/* /*
Go through every y,z and get top(y+) faces in rows of x+ Go through every y,z and get top(y+) faces in rows of x+
*/ */
@ -705,7 +703,7 @@ scene::SMesh* makeMapBlockMesh(MeshMakeData *data)
blockpos_nodes, blockpos_nodes,
smooth_lighting); smooth_lighting);
} }
if (!z) { for (s16 x=0; x<MAP_BLOCKSIZE; x++) {
/* /*
Go through every x,y and get right(x+) faces in rows of z+ Go through every x,y and get right(x+) faces in rows of z+
*/ */
@ -723,8 +721,6 @@ scene::SMesh* makeMapBlockMesh(MeshMakeData *data)
} }
} }
} }
}
}
// End of slow part // End of slow part