Open moebiussurfing opened 4 years ago
hey @armadillu ,
There's another fontStash addon by @andorxornot that solves the destructor thing on the last two commits: https://github.com/Kiberchaika/ofxFontStash3/commits/master
I tested and it works perfectly. Not sure if it can help to modify yours, I'll check around.
thanks makes sense, ill have a look!
Hey @armadillu, any chance to get this solved? Or it's hard to solve or not useful enough maybe?
hey @armadillu ,
I am back into messing around into "my fly reloading fonts problems" as we talked here: https://github.com/armadillu/ofxFontStash2/issues/12
I found that the memory leak problem is here in ofxFontStash. (I am using both ofxFontStash and ofxFontStash2 together into the same project, and I have not checked yet the ofxFontStash2 destructor alone...)
Can you tell me some tips to check around it to try to solve this? What are the bigger difficulties or some starting point?
I made a very simple project to compare with ofTrueTypeFont class, and it works perfectly, no memory growing at all.
Here I paste a screenshot (5GB in 2 minutes reloading the font 5 times per second) and the code I used:
ofApp.h
ofApp.cpp