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.
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.
Show differencesHistory of post edits
#ActualIndakung
Posted 13 February 2012 - 11:12 PM
#1Indakung
Posted 13 February 2012 - 11:12 PM
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.
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.