Sign in to follow this  
dev_12

Directx9.0 application hanging because of switchable graphics card in hp laptop

Recommended Posts

dev_12    113

Hi

 

i m using directx9.0 based application in my laptop with switchable graphics card (intel hd and nvidia 2 GB) my application hangs very frequently.

Same application if I run on different laptop with only nvidia gfx card works fine.

 

where is the problem.

 

Kindly help me out.

Share this post


Link to post
Share on other sites
iedoc    2527

try checking out:

http://msdn.microsoft.com/en-us/library/windows/desktop/bb147355(v=vs.85).aspx

 

If you haven't, you might have to specify which card to use. i wonder if your application is just using your embedded graphics hardware rather than the card? This happens sometimes, i can't really remember what the symptom are though, so this might not be it, but just a suggestion

Share this post


Link to post
Share on other sites
Adam_42    3629

It's almost certainly down to Optimus guessing incorrectly about which graphics card to give your game.

 

You can persuade it to pick the right one easily enough though - see this recent thread http://www.gamedev.net/topic/664696-unable-to-toggle-fullscreen-mode/

 

The quickest fix is to add this to your code somewhere:

extern "C" { 

 _declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;

}

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