1
General / Re: loadFromFile() randomly fails
« on: March 30, 2022, 09:01:59 pm »
I am calling loadFromFile().
This was forked from another repository, and I don't think it was ever intended to be restarted like this. Now that you mention it, I do have a centralized text-manager struct that I could use, as it only loads fonts and textures once. However, I do have map loading which would be reloaded repeatedly. I would have to find a way to pre-load the maps accordingly.
I suppose it would be advisable to load everything once rather than reloading it repeatedly. Thanks for your response.
Why would you be reloading textures and fonts hours on end?
This was forked from another repository, and I don't think it was ever intended to be restarted like this. Now that you mention it, I do have a centralized text-manager struct that I could use, as it only loads fonts and textures once. However, I do have map loading which would be reloaded repeatedly. I would have to find a way to pre-load the maps accordingly.
I suppose it would be advisable to load everything once rather than reloading it repeatedly. Thanks for your response.