ravertass / PixelHunter1995

Point and click goodness
0 stars 0 forks source link

Use single render target for polygon #93

Closed ravertass closed 4 years ago

ravertass commented 4 years ago

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.

ravertass commented 4 years ago

@feha , what du you think of this?

feha commented 4 years ago

@feha , what du you think of this? Sounds (and looks) good. Nice catch that they need to be disposed of!