prime31 / Nez

Nez is a free 2D focused framework that works with MonoGame and FNA
MIT License
1.76k stars 357 forks source link

Object allocation of IEnumator caused memory leak #794

Closed stallratte closed 3 months ago

stallratte commented 3 months ago

Hello,

I loaded a TmxMap with some animated tiles. The number of allocated memory steadily increased. After changing "foreach (var tileset in Tilesets)" to " for (var i = 0; i < Tilesets.Count; i++)" the allocated memory is stable.

It would be great if you could have a look at this issue and maybe allow to merge the pull request.

Best regards, stallratte