From 13528fe2b6efee8c677d5c605426335b13a07dbb Mon Sep 17 00:00:00 2001 From: RHY3756547 Date: Mon, 29 Oct 2018 16:13:10 +0000 Subject: [PATCH] [Perf] Fix embarassing performance nightmare --- MonoGame.Framework/Graphics/GraphicsDevice.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MonoGame.Framework/Graphics/GraphicsDevice.cs b/MonoGame.Framework/Graphics/GraphicsDevice.cs index 8c7077715..15f1922e6 100644 --- a/MonoGame.Framework/Graphics/GraphicsDevice.cs +++ b/MonoGame.Framework/Graphics/GraphicsDevice.cs @@ -586,7 +586,7 @@ namespace Microsoft.Xna.Framework.Graphics { lock (_resourcesLock) { - _resources.RemoveWhere(wr => !wr.IsAlive); + _resources.Remove(resourceReference); } }