forked from oerkki/voxelands
tweak the tweak
This commit is contained in:
parent
28c8ca440f
commit
e32fa69ba5
|
@ -672,10 +672,8 @@ scene::SMesh* makeMapBlockMesh(MeshMakeData *data)
|
|||
{
|
||||
// 2-12ms for MAP_BLOCKSIZE=16
|
||||
//TimeTaker timer2("updateMesh() collect");
|
||||
for (s16 x=0; x<MAP_BLOCKSIZE; x++) {
|
||||
for (s16 y=0; y<MAP_BLOCKSIZE; y++) {
|
||||
for (s16 z=0; z<MAP_BLOCKSIZE; z++) {
|
||||
if (!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,
|
||||
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+
|
||||
*/
|
||||
|
@ -723,8 +721,6 @@ scene::SMesh* makeMapBlockMesh(MeshMakeData *data)
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// End of slow part
|
||||
|
||||
|
|
Loading…
Reference in New Issue