Open com1clyf3 opened 6 years ago
I swear I fixed this last night... will try to reproduce again.
random crashes unfortunately will still occur at load time if the graphics device is disposed, due to a lot of stuff happening in the loading thread. I'm going to maybe try moving some of that stuff to the main play state.
Okay, so I went ahead and did a testing grind with "graphics device lost during game load time" and fixed a few dozen crashes. This is something the engine was never meant to handle, so there are still going to be corner cases, but I've gotten the most egregious of them. For one, there were a few systems that assumed that they could load all their assets at startup and never touch them again (sky renderer, water renderer, indiciators, etc.). I broke them of this assumption and they're much more robust now.
Very likely a variation of #952, but this particular crash happened in Terrain.
Occurred using same repro of #952.
Output:
cf5eaf96