Rendering randomly falls back into software

There's another thread on this topic here:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2052187&SiteID=1

but rather than hijack that thread more than I already have, I thought I'd start a new one on this topic, especially since it's really beginning to annoy me.

The basic issue is that depending on the Window size and apparently alot of other "unknown" factors, WPF randomly and without any apparent reason decides to fall back to software rendering. I can verify this using Perforator. I have created a relatively simple layout using a Viewbox and a Dockpanel. Sometimes I run the window and it remains rendered in hardware, even when the Window is Maximized. Other times, I resize the window even just a little and it immediately falls back into software. Same window, simply a different time that I double-click the exe file.

Sometimes it will fall back when video RAM usage is at 3.7 MB (for example); sometimes it waits until the usage is 8.3MB (for example). There is no apparent rhyme or reason to this behavior. It's important to me though, that my app be rendered in hardware as much as possible.

I don't mind periodic fallbacks but I don't want to expect hardware rendering when the app is fullscreen, and find users telling me the performance plummets - SOMETIMES - when they maximize the window.

Anyone else seen this behavior and/or is able to explain it?

Is this a performance issue that has been resolved in 3.5?

[1645 byte] By [PatrickSears] at [2008-1-10]
# 1
This shouldn't be happening. Are your video card drivers up-to-date? Could you post the information you can save with DxDiag (Start -> Run -> Dxdiag.exe > Save All Information)?
GerhardSchneider-MSFT at 2007-10-3 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 2
Sure.

It's actually quite alot of information, so here's a link to the file on my server:

http://patricksears.com/DxDiag.txt

I ran the DirectDraw and Direct3D tests also.

Any help is appreciated!

PatrickSears at 2007-10-3 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 3

Anyone have any thoughts on this issue?

PatrickSears at 2007-10-3 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 4
Can you update the driver for the graphic card?
Linzhen at 2007-10-3 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 5

Can you update the driver for the graphic card?

I have done so, just a couple of days ago actually. ATI had a very recent update; turns out the drivers I was using were almost 2 years old.

I still see sudden fallbacks into software while resizing, but now, it always returns back to the hardware immediately once the resize stops. Before, it would stay in software. So it seems the issue is fixed.

Thanks all!

PatrickSears at 2007-10-3 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 6

How are you determining that you are falling back to software?

PS Sorry for not replying earlier. I was on a trip and just got back...

GerhardSchneider-MSFT at 2007-10-3 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 7
Gerhard Schneider - MSFT wrote:

How are you determining that you are falling back to software?

Perforator shows Software Render Targets goes from 0 to 1.

Hm. I just tried the example again (3D Cube Animation Demo in the Windows SDK WPF Samples) and it's not going back to the hardware this time.

Agggggghhhhhhhhhhh

Gerhard Schneider - MSFT wrote:

PS Sorry for not replying earlier. I was on a trip and just got back...

No problem! Any help you can give is appreciated.

PatrickSears at 2007-10-3 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...

Visual Studio Orcas

Site Classified