Sign in to follow this  
fpsgamer

General Kernel / Driver / OS Question

Recommended Posts

I've always wondered about the following: Let's say an OpenGL application creates a number of texture Objects. This requires your video card driver to allocate some kernel resources. Now say your application exits unexpectedly. How can the the video card driver possible deallocate those resources? Are those resources now dangling and irrecoverable until a restart? Feel free to answer this question in the context of a number of Operating systems, but I am particularly interested in Windows, OS X and Linux.

Share this post


Link to post
Share on other sites
The data on the video card is just trashed when the program dies (generally speaking; there are special cases).

The data allocated in main system RAM is recovered, just like all other data, because the pages dedicated to the program are recovered. I believe under Windows the driver also has its own memory (the paged pool, which is the cause of some annoying Source engine errors), but I assume that's reclaimed as well.

Share this post


Link to post
Share on other sites
Quote:
Original post by Edward Ropple
The data on the video card is just trashed when the program dies (generally speaking; there are special cases).

The data allocated in main system RAM is recovered, just like all other data, because the pages dedicated to the program are recovered. I believe under Windows the driver also has its own memory (the paged pool, which is the cause of some annoying Source engine errors), but I assume that's reclaimed as well.


I know that when a user space application crashes its virtual address space is destroyed thereby recovering thoes resources. But how can the video card driver detect that the OpenGL context was abruptly trashed?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this