Jump to content

View more

Image of the Day

WIP title screen for #DeathOfAPartisan #screenshotsaturday #gamedev https://t.co/qJNhfZCvd4
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Device or Context lost. Should I bother?

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
4 replies to this topic

#1 nikitablack   Members   

1101
Like
0Likes
Like

Posted 09 July 2014 - 05:31 AM

Hello. Googling didn't help, so I'll ask here. Can I lost device or context while working with dx11? If so, how can I handle it?



#2 Zaoshi Kaba   Members   

8306
Like
4Likes
Like

Posted 09 July 2014 - 05:53 AM

Device and Context cannot be lost, but Swap Chain can be (though you have to reinstall driver or physically remove GPU). Read more here: http://msdn.microsoft.com/en-us/library/windows/apps/dn458383.aspx



#3 nikitablack   Members   

1101
Like
0Likes
Like

Posted 09 July 2014 - 06:17 AM

That's what I needed. Thank you.



#4 SeanMiddleditch   Members   

17493
Like
2Likes
Like

Posted 09 July 2014 - 10:58 AM

Device and Context cannot be lost, but Swap Chain can be (though you have to reinstall driver or physically remove GPU). Read more here: http://msdn.microsoft.com/en-us/library/windows/apps/dn458383.aspx


If you read that, it's a lot more than the SwapChain being lost. You have to recreate the Device and all resources.

It's worthwhile IMO since drivers crash and the OS has to restart them sometimes, which is equivalent to reinstalling a driver or removing/replacing the GPU. Borderlands 2 did this for me a few months ago when my GPU started overheating (dust buildup in the heatsink) and it was nice that I didn't lose hours of play but rather just had a few moment of intermittent pauses/screen-blanks before I decided to find out what was wrong.

Game Developer, C++ Geek, Dragon Slayer - http://seanmiddleditch.com

C++ SG14 "Games & Low Latency" - Co-chair - public forums

Wargaming Seattle - Lead Server Engineer - We're hiring!


#5 Jason Z   Members   

6430
Like
3Likes
Like

Posted 10 July 2014 - 03:55 PM

 

Device and Context cannot be lost, but Swap Chain can be (though you have to reinstall driver or physically remove GPU). Read more here: http://msdn.microsoft.com/en-us/library/windows/apps/dn458383.aspx


If you read that, it's a lot more than the SwapChain being lost. You have to recreate the Device and all resources.

It's worthwhile IMO since drivers crash and the OS has to restart them sometimes, which is equivalent to reinstalling a driver or removing/replacing the GPU. Borderlands 2 did this for me a few months ago when my GPU started overheating (dust buildup in the heatsink) and it was nice that I didn't lose hours of play but rather just had a few moment of intermittent pauses/screen-blanks before I decided to find out what was wrong.

 

 

That's probably true for a production game like Borderlands, but for anything less than a commercial product it is most likely overkill.  If your graphics driver crashes, there are some serious issues, and most people wouldn't expect a game to continue running through that...






Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.