direct3d9 - Can WPF's D3DImage.IsFrontBufferAvailable be ignored? -


i followed common advice wpf's d3dimage.isfrontbufferavailable , stopped rendering when front buffer not available. after resetting d3d device property remains stuck false , never becomes true again.

unless drop debugger , ignore property , continue rendering anyway, turns true , starts working again.

even removing d3dimage.isfrontbufferavailable check entirely , ignoring property time seems work well.

it seems that's ​recommended people other reasons:

note if isfrontbufferavailable flag stating unavailable, you’ll still able render properly. trick ignore flag.

what downsides ignoring it? (or there other trick makes not stop working?)

i think recommended save resources if program not displayed (e.g. if user in lock screen).

from experience can safely ignore it, keeps rendering if ui not shown user.

if application not need lot of resources not have big impact on power consumption.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -