コード例 #1
0
 void OnPeriodicMemoryEvent(PeriodicMemoryEvent e)
 {
     if (e.Level >= MemoryLevel.High)
     {
         m_MemTracker.ClearInactiveItems(m_MeshesHandle);
     }
     else if (e.Level == MemoryLevel.Medium)
     {
         m_MemTracker.ClearInactiveItemsOlderThan(m_MeshesHandle, TimeSpan.FromSeconds(5));
     }
 }