As mentioned in Discord, RenderContext not disposing the underlying SpriteBatch was causing GPU resources to never be released. This PR implements that using the Dispose pattern so that it can be reclaimed even if not explicitly disposed
Also adds TextInputEXT.TextInput -= OnChar; to remove the permanent reference on the object so that it can eventually be cleaned up by the garbage collector
As mentioned in Discord,
RenderContext
not disposing the underlyingSpriteBatch
was causing GPU resources to never be released. This PR implements that using the Dispose pattern so that it can be reclaimed even if not explicitly disposedAlso adds
TextInputEXT.TextInput -= OnChar;
to remove the permanent reference on the object so that it can eventually be cleaned up by the garbage collector