|
Post by silderan on Dec 27, 2014 15:00:52 GMT
Hello again Ness.
In tilemap example, I added this line in main loop:
instructions->set_text(cadena); // Cadena is "string" in spanish.
In console window I can see debug msgs saying "load font..." and "delete no longer used font..." But, in task manager dialog, memory used by application raises arround 3Mb per second, in debug or release mode, doesn't matter. When closing window, you can see memory freeing (lowering) in task manager until app closes.
Ness::Text class seems Ok.
Maybe it's not memory leak with your library but SDL.
Regards!
Silderán.
|
|
|
Post by Admin on Dec 27, 2014 18:47:44 GMT
hi silderan, thank you very much for this report, there was indeed a memory leak in the Text and multiline-text entities (in Text the leak was only noticeable on delete). I already committed the fix to the git repo, but the version is not yet ready to make a full release. if you need the fix right now you can get the source and build with visual studio (version in repository should be stable). if you have any problems with the build let me know. github.com/ronenness/ness-enginethanks again
|
|
|
Post by silderan on Dec 27, 2014 22:52:12 GMT
I'm happy to heard that... and like a lot your improvement "also made optimization in changing multiline text that will not reload font if not needed."
|
|