mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
Update RootComponent.cs
This commit is contained in:
@@ -317,10 +317,9 @@ namespace TEngine
|
|||||||
|
|
||||||
private void OnLowMemory()
|
private void OnLowMemory()
|
||||||
{
|
{
|
||||||
Log.Info("Low memory reported...");
|
Log.Warning("Low memory reported...");
|
||||||
|
|
||||||
//TODO
|
ObjectPoolComponent objectPoolComponent = GameEntry.GetComponent<ObjectPoolComponent>();
|
||||||
/*ObjectPoolComponent objectPoolComponent = GameEntry.GetComponent<ObjectPoolComponent>();
|
|
||||||
if (objectPoolComponent != null)
|
if (objectPoolComponent != null)
|
||||||
{
|
{
|
||||||
objectPoolComponent.ReleaseAllUnused();
|
objectPoolComponent.ReleaseAllUnused();
|
||||||
@@ -330,7 +329,7 @@ namespace TEngine
|
|||||||
if (resourceComponent != null)
|
if (resourceComponent != null)
|
||||||
{
|
{
|
||||||
resourceComponent.ForceUnloadUnusedAssets(true);
|
resourceComponent.ForceUnloadUnusedAssets(true);
|
||||||
}*/
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user