fdncred's picture

[Solved] Reset NVidia Quadro FX770M programmatically?

Is there a way through opengl to reset the video card or perhaps the opengl settings. I'd like to ensure that the settings are set to the default for the card when my app launches before I start trying to do anything. Initializing the card perhaps.


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

What settings are you interested in? You can control things such as AA level and texture quality but there is no general way to override settings chosen by the user.

fdncred's picture

In another thread I had a problem where VBOs were drawing extremely slowly. A reboot fixed the problem. So I assumed that my video card was reinitialized during reboot. I was wanting to do something like that so that if my drivers or card get into a wiggy state as before a re-init could correct the problem without a reboot.

c2woody's picture

Can you reproduce the problem?

fdncred's picture

I cannot reproduce the problem on demand but it happens from time to time. I'm not sure what i'm doing to screw things up.

c2woody's picture

Well post some code or assure that you have full checking in all routines (gl error codes, OpenTK debug builds). Having to reboot a system to "initialize" the OpenGL state indicates a broken system or at least buggy drivers assuming your code is fine.

the Fiddler's picture

Ah, I see. This can only be caused by a bug in the drivers or the OS. There's no way to reset the GPU, since that is a shared resource that can be used by any number of applications at the same time.

Nvidia 260.xx drivers have a few bugs that affect OpenTK and can result in abnormal slowness. These issues have been reported as fixed in the newer 266.xx release. If the problems persist with that, your best bet is to file a bug report with nvidia. Their developers are very responsive on issues that affect Quadro FX cards.

Edit: the release notes for 266.45 mention a number of VBO-related fixes. Worth a try.

fdncred's picture

I'm using 266.58 WHQL. Guess I'll wait for another version since I can't reproduce it on demand. Thanks for your help.

fdncred's picture

I finally figured this out. It has nothing to do with my code. When the OpenGl slow down occurs the fix is to exit out of Visual Studio 2010. Once I restart my program after exiting out of VS2010 the speed of OpenGl radically improves. If I still need to do development I start up VS2010 again and code away. It usually works for a couple hours then i have to exit again.

I know it's not ideal but it's a lot easier and quicker than rebooting every time.

Darren