Not sure if this is the right place to post this problem but I’ve been stuck for a while and it seems to be related to nvidia cards.
Basically if I open the same opengl exe over and over, it takes longer and longer to start. But if I make a copy of the exe and rename it, that exe starts instantly even if the original exe has a number of copies running. To further complicate things, two copies of the exe with the same name but in different directories will also cause each other to start slowly.
I ended up switching my project over to directx, so I didn’t do very thorough testing. But it seemed like the delay was caused by the first call to glCompileShader, although sometimes my timer only showed the delay after a couple SwapBuffers calls were also made.
If the same exe is ran with a different name, it does not add to the delay.
If the same exe is ran with the same name, but in different directories, it does add to the delay.
I’m out of my depth with this bug, but it does seem to me like there are three possible explanations:
A bug in our code.
A bug in windows.
A bug in the nvidia drivers.
The fact that we haven’t yet found code where this doesn’t occur (I’ll admit to not looking extensively), and that it works fine on intel and amd cards, leads me to think it’s a bug in the nvidia drivers.