ZoneLoading: Add ZoneMemory and the possibility to unload zones and their memory

This commit is contained in:
Jan committed 2019-12-24 18:41:42 +01:00
1 parent d224eb8ce5
commit 7121f2e215
9 files changed
+116 -2

No files matched your search

+4 -1
View File
@@ -146,12 +146,15 @@ public:
m_linked_asset_pools.erase(iLinkEntry);
for(auto iAssetEntry = m_assets.begin(); iAssetEntry != m_assets.end(); ++iAssetEntry)
for(auto iAssetEntry = m_assets.begin(); iAssetEntry != m_assets.end(); )
{
auto& assetEntry = *iAssetEntry;
if(assetEntry.second.m_duplicate && ReplaceAssetPoolEntry(assetEntry.second))
{
++iAssetEntry;
continue;
}
iAssetEntry = m_assets.erase(iAssetEntry);
}