Core/Vmaps: Reduce memory used by vmaps (and their size, slightly)

This commit is contained in:
Shauren
2021-04-24 23:28:42 +02:00
parent 4e00cb7c15
commit bb8f22ed20
12 changed files with 80 additions and 71 deletions

View File

@@ -16,17 +16,17 @@
*/
#include "MapTree.h"
#include "ModelInstance.h"
#include "VMapManager2.h"
#include "VMapDefinitions.h"
#include "Log.h"
#include "Errors.h"
#include "Log.h"
#include "Metric.h"
#include <string>
#include <sstream>
#include "ModelInstance.h"
#include "VMapDefinitions.h"
#include "VMapManager2.h"
#include "WorldModel.h"
#include <iomanip>
#include <limits>
#include <sstream>
#include <string>
using G3D::Vector3;
@@ -355,7 +355,7 @@ namespace VMAP
{
iTreeValues[i->first].setUnloaded();
for (uint32 refCount = 0; refCount < i->second; ++refCount)
vm->releaseModelInstance(iTreeValues[i->first].name);
vm->releaseModelInstance(iTreeValues[i->first].getWorldModel()->GetName());
}
iLoadedSpawns.clear();
iLoadedTiles.clear();