Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

#ActualIndakung

Posted 13 February 2012 - 11:12 PM


Thank you. But how could the program predict the device's losing? Or just copy the data every frame? It seems not so efficient.


I don't think you can in a reliable manner. You can detect a focus change, but I don't know if the device will already be considered "lost" at that point.

If you want, you can detect if your app is running on Vista or Win7 and create D3D9Ex interfaces. If you use those, you won't get a lost device scenario. Doesn't help you for at all for XP, obviously.

Thank you. As a matter of fact, losing device is not an usual thing, and I think most people would ignored the resetting of particles after that case, so I'd better ignore this problem too.

#1Indakung

Posted 13 February 2012 - 11:12 PM


Thank you. But how could the program predict the device's losing? Or just copy the data every frame? It seems not so efficient.


I don't think you can in a reliable manner. You can detect a focus change, but I don't know if the device will already be considered "lost" at that point.

If you want, you can detect if your app is running on Vista or Win7 and create D3D9Ex interfaces. If you use those, you won't get a lost device scenario. Doesn't help you for at all for XP, obviously.

Thank you. As a matter of fact, losing device is not an usual thing, and I think most people would ignored the resetting of particles after that, so I'd better ignore this problem too.

PARTNERS