Open slipher opened 3 years ago
common.pedanticShutdown
would be good!
Also I have noticed the engine seems to reload the VFS after having asked to quit… right before quitting. Probably returning from game to main menu before quitting or something like that.
Also I have noticed the engine seems to reload the VFS after having asked to quit… right before quitting.
Yeah, I should finish up #201 which is kind of connected to this.
Some problem during shutdown was caught by the MSVC debug iterators, with the following stack trace:
My opinion about static destructors is that it's best to skip them. Shutdown finishes much faster if you don't run all the destructors. I've been thinking we could have a variable like
common.pedanticShutdown
if you want to execute all of them (for leak checking or something), and otherwise do a quick exit. This could be applied to (non-DLL?) VMs as well as the engine.