Jump to content
  • Advertisement
Sign in to follow this  
Monza

[SLIMDX] Device Lost Management

This topic is 3028 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've been using SLIMDX in VB.NET for sometime with good success on a CAD / Engineering application. The only thing I'm struggling with is the Device management, particularly detecting, capturing and recovering from Device Lost events (caused by PC screensavers, suspends etc) I currently run a global D3D9 device, with a heap of Try > Catch > End Try routines. It works, but it's ugly and seems to cause memory leaks after reseting / rebuilding the device, and doesn't work on some video cards. The SlimDX game framework in the SDK works OK in the demos, but (no offence to the SlimDX guys) the system seems complex, difficult to pull apart and unsuited for my app (basically load up a heap of fixed pipe geometry objects and force a render when complete) Sorry for the vague question, but any advice on simple steps (or pseudo code) I need to create and manage my Device better?

Share this post


Link to post
Share on other sites
Advertisement
The framework in the release of SlimDX you're using has been deprecated and removed; the new sample framework (in the current SVN builds) has an example of lost device handling that may be a bit clearer.

Share this post


Link to post
Share on other sites
Yes - the framework is much clearer. Thanks for the pointer. I look forward to the next release.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!