I have a question about resource cleanup using Vulkan.
I was working through a setup-tutorial for Vulkan and came across this passage:
After the application is closed, the OS should release memory and all other resources associated with it. This should include Vulkan; the driver usually cleans up unreferenced resources. Unfortunately, this cleaning may not be performed in a proper order, which might lead to application crash during the closing process. It is always good practice to do the cleaning ourselves.
The tutorial in question is API without Secrets.
Here he explicitly says that the OS and driver cleans up everything our application leaves behind. Is it actually true that the application could crash _after_ we exited and cause trouble?
I heard at least from Casey Muratori on Handmade Hero and, I think, from Jonathon Blow on some stream that it is really normally never necessary to free resources we used when we quit the application (because the OS has to do it anyway) and that unnecessary cleanup is one reason many programms actually take so much time closing.
Thanks in advance!
T.J.