256
Window / Re: switching from 2.3.2 to 2.4.0 -> loading texture from sf::Thread now crashes
« on: September 24, 2016, 06:52:41 pm »
While I don't have an answer for the specific problem (I don't know enough about SFML's specific internals) I can offer the 'compromise' to which I came when animating loading screens. The trade off is to load my loading screen resources when the game first starts up, and keep them around for the duration of execution. Then the loading screen/thread launched between states merely animates and draws the resources, having no need to load anything, while the main thread continues to load the new state in the background. This does mean you can't have a loading screen on first start, and that some memory will always be allocated to these resources, but for something small like a rotating icon I find it fast enough to be an acceptable solution.