Cocos2DXNA / cocos2d-xna

XNA Port of Cocos2d-X
www.cocos2dxna.com
227 stars 123 forks source link

Memory leak in CCSplitRows #417

Closed totallyeviljake closed 10 years ago

totallyeviljake commented 10 years ago

See LabelBMFontHD.cs in the tests - the LabelBMFontHDMemoryLeak4 demonstrates this memory leak. After 100 cycles you will see the classic stepped memory allocation pattern indicative of a memory leak.

heap analysis only shows egregious byte[] array allocations and string allocations running amock. The byte[] array allocations are occurring in the Shader() class in MonoGame.

totallyeviljake commented 10 years ago

This memory leak appears to be isolated to MonoGame WP8. When I ran the same test in Windows XNA I do not get a memory leak. Similarly for MonoGame GL.