diff options
author | Sebastian Valle <s.v.h21@hotmail.com> | 2013-10-17 11:10:42 -0500 |
---|---|---|
committer | Sebastian Valle <s.v.h21@hotmail.com> | 2013-10-17 11:16:20 -0500 |
commit | 4ce12dc481323c11b4830d06f8080412d855cc64 (patch) | |
tree | 5b5038303a001fb4948fe58ebb492bee8d802a27 /src | |
parent | cc9671af908c027937c9950ee6b911a6047df75a (diff) |
Tools/MeshExtractor: Don't load neighbor ADTs each time we generate an ADT.
Diffstat (limited to 'src')
-rw-r--r-- | src/tools/mesh_extractor/TileBuilder.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tools/mesh_extractor/TileBuilder.cpp b/src/tools/mesh_extractor/TileBuilder.cpp index 534a2e68601..7e2f7fe3c47 100644 --- a/src/tools/mesh_extractor/TileBuilder.cpp +++ b/src/tools/mesh_extractor/TileBuilder.cpp @@ -217,7 +217,8 @@ uint8* TileBuilder::BuildTiled(dtNavMeshParams& navMeshParams) CalculateTileBounds(bmin, bmax, navMeshParams); _Geometry->CalculateMinMaxHeight(bmin[1], bmax[1]); - // again, we load everything - wasteful but who cares + // This is commented out to reduce the size of the resulting files (and the time it takes to generate them), we shouldn't need to load 4 more ADTs each time. + /*// again, we load everything - wasteful but who cares for (int ty = Y - 1; ty <= Y + 1; ty++) { for (int tx = X - 1; tx <= X + 1; tx++) @@ -237,7 +238,7 @@ uint8* TileBuilder::BuildTiled(dtNavMeshParams& navMeshParams) _Geometry->AddAdt(_adt); delete _adt; } - } + }*/ OutputDebugVertices(); |