I have implemented a basic rendering system using D3D9 (in unmanaged code) using D3DImage for WPF. Everything is working as expected apart from the fact that when the window is resized I am presented with intermittent black frames (on completion of resize the
correct scene is always rendered).
The device is not being lost and no errors are being reported by any D3D functions during rendering.
A brief update. I have built the microsoft examples and found that they exhibit exactly the same behaviour. My guess is that at a certain point the video memory
becomes fragmented and while the driver is doing something to rectify it a black frame is returned. The behaviour is different when the IDirect3DSurface9 is created with a
pixel format; in this case an entirely transparent frame is returned. Limted creation IDirect3DSurface9 objects limts the effect but this has the downside of other resize problems
Edited bydt128528Friday, December 02, 2011 10:31 AM