1
Graphics / Re: Is there any way to have sf::Text not cache the new font texture into memory whe
« on: November 21, 2024, 09:15:54 pm »
Instead of completely reloading the font from file, you could make a copy of the sf::Font instance before rendering characters, and use it to reset your working sf::Font instance from time to time by assigning to it. This will reuse the same underlying FreeType objects under the hood but start with new empty textures.
EDIT: forget what I said, the textures are also copied with the font. I was expecting it was not doing it.
Then I have no idea besides patching SFML code to implement clearing font textures.
EDIT: forget what I said, the textures are also copied with the font. I was expecting it was not doing it.
Then I have no idea besides patching SFML code to implement clearing font textures.