WPF falls to software modeUsing Perforator tool I find out that my application from time to time <span style="font-family:Arial;font-size:13px;white-space:pre">falls to software mode.</span> <div><span style="font-family:Arial;font-size:small"><span style="font-size:13px;white-space:pre">Is there any way (maybe tools or logs) to find out what is the cause?</span></span></div>© 2009 Microsoft Corporation. All rights reserved.Wed, 08 Jul 2009 12:30:46 Zda03bd3c-59d6-45f0-bbcf-a836727bdc2ahttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/da03bd3c-59d6-45f0-bbcf-a836727bdc2a#da03bd3c-59d6-45f0-bbcf-a836727bdc2ahttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/da03bd3c-59d6-45f0-bbcf-a836727bdc2a#da03bd3c-59d6-45f0-bbcf-a836727bdc2ada Vincihttp://social.msdn.microsoft.com/Profile/en-US/?user=da%20VinciWPF falls to software modeUsing Perforator tool I find out that my application from time to time <span style="font-family:Arial;font-size:13px;white-space:pre">falls to software mode.</span> <div><span style="font-family:Arial;font-size:small"><span style="font-size:13px;white-space:pre">Is there any way (maybe tools or logs) to find out what is the cause?</span></span></div>Sat, 04 Jul 2009 10:28:46 Z2009-07-04T10:28:46Zhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/da03bd3c-59d6-45f0-bbcf-a836727bdc2a#aabb283c-0dd8-45c4-b78d-bbcaf772d25dhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/da03bd3c-59d6-45f0-bbcf-a836727bdc2a#aabb283c-0dd8-45c4-b78d-bbcaf772d25dRay M_http://social.msdn.microsoft.com/Profile/en-US/?user=Ray%20M_WPF falls to software modeAre you using any BitmapEffects by anychance? those are always rendered in software mode. If you have .net 3.5 sp1 replace them with regular effects that are hardware accelarated.Sat, 04 Jul 2009 18:11:19 Z2009-07-04T18:11:19Zhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/da03bd3c-59d6-45f0-bbcf-a836727bdc2a#9214930d-fd62-4830-93c6-0d4f80a80008http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/da03bd3c-59d6-45f0-bbcf-a836727bdc2a#9214930d-fd62-4830-93c6-0d4f80a80008da Vincihttp://social.msdn.microsoft.com/Profile/en-US/?user=da%20VinciWPF falls to software modeNo, I am not using BitmapEffect. Initially all work in hardware mode but suddenly switch to software...Mon, 06 Jul 2009 18:00:52 Z2009-07-06T18:00:52Zhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/da03bd3c-59d6-45f0-bbcf-a836727bdc2a#b3d0886b-aa1e-4e86-86b3-aa22d3a40e7dhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/da03bd3c-59d6-45f0-bbcf-a836727bdc2a#b3d0886b-aa1e-4e86-86b3-aa22d3a40e7dJordan Parker - MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Jordan%20Parker%20-%20MSFTWPF falls to software modeDo you know how to repro the software fallback or is it pretty random? It might be a driver problem or, if you're on XP, you could be running out of video memory.Mon, 06 Jul 2009 20:27:49 Z2009-07-06T20:27:49Zhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/da03bd3c-59d6-45f0-bbcf-a836727bdc2a#22a9e6ae-f2fd-49ee-9024-1258821d5a8bhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/da03bd3c-59d6-45f0-bbcf-a836727bdc2a#22a9e6ae-f2fd-49ee-9024-1258821d5a8bda Vincihttp://social.msdn.microsoft.com/Profile/en-US/?user=da%20VinciWPF falls to software mode<div>I would be said that it  is pretty random. But... There are something <span>worries</span> <span>me.</span></div> <div><br/></div> <div>1) This app has an Image with WiritableBitmap (1900x1200x32bpp). If I use 800x600x32bpp image it falls back to software rarely. It looks like it folls when I recreate WiritableBitmap. I use the following code to change resolution of bitmap (to prevent momory leak):</div> <div><br/></div> <div> <div>writeableBitmap = new WriteableBitmap(newWidth, newHeight, 96, 96, PixelFormats.Bgra32, null);</div> <div>image.Source = writeableBitmap;</div> <div><br/></div> </div> <div> <div>GC.Collect();</div> <div>GC.WaitForPendingFinalizers();</div> <div>GC.Collect();</div> <div><br/></div> <div><br/></div> <div>2) My app has unmanaged C++ part where I allocate video memory. I know amount my video memory (~80Mb). I use NVidia GeForce 8800GTS with 512Mb (WDDM drivers, Windows Vista). Does WPF have some video memory limits?</div> </div>Wed, 08 Jul 2009 12:30:46 Z2009-07-08T12:51:50Z