16
DotNet / Re: [SFML2.4 - VB NET 4.5.2] Overlap memory with heavy font files.
« on: August 24, 2021, 06:50:28 pm »
Thank eXpl0it3r for your answer.
My bad, the documentation is clear:
don't notice this before, because all the resources (textures, sounds) I load as stream bytes, since they are packed.
Since the other resources don't have this behavior, I just used the same code to load the fonts.
My apologies and thanks for your answers.
My bad, the documentation is clear:
Quote
Warning
SFML cannot preload all the font data in this function, so the stream has to remain accessible until the sf::Font object loads a new font or is destroyed.
don't notice this before, because all the resources (textures, sounds) I load as stream bytes, since they are packed.
Since the other resources don't have this behavior, I just used the same code to load the fonts.
My apologies and thanks for your answers.