Don't allocate a new render target for drawing polygons each frame,
since they are not automatically dispose. Only use one and dispose it
when the polygon destructor is called.
I don't know if this is the correct solution or if there is something more
to think about when writing C# destructors.
Don't allocate a new render target for drawing polygons each frame, since they are not automatically dispose. Only use one and dispose it when the polygon destructor is called.
I don't know if this is the correct solution or if there is something more to think about when writing C# destructors.