public void Release() { lock (items) { while (items.Count > 0 && GraphicsDevice.IsFenceCompleteInternal(items.Peek().Key)) { ReleaseObject(items.Dequeue().Value); } } }