GPU memory leak when multiple OpenGL contexts are active
As soon as they are multiple OpenGL contexts active at the same time, GPU memory leaks occur because some textures are not deleted correctly anymore.
According to early debugging sessions, glDeleteTextures()
is called correctly. However, the GPU memory is not freed as the memory monitor of GPU-Z suggests (as well as the general performance). As soon, as I manually make that call exclusive/synchronized, the memory leak seems to not occur again.
This article is not too specific how OpenGL handles concurrent deletion of textures/buffers. However, we definitely take care of correct thread-context management. It might be a nVidia driver bug as well... :/