Exemple #1
0
        public void EndSample()
        {
            if (_sample != null)
            {
                Game.Components.Remove(_sample);
                _sample.Dispose();
                _sample = null;

                Profiler.ClearAll();
                ResourcePool.ClearAll();
                GC.Collect();
            }
        }
Exemple #2
0
        private void EndSample()
        {
            if (_sample != null)
            {
                _game.Components.Remove(_sample);
                _sample.Dispose();
                _sample = null;

                ResetOptions();

                Profiler.ClearAll();
                ResourcePool.ClearAll();
                GC.Collect();
            }
        }