WPF apps slow for some reason

Everything is slow for some reason. I tried Max, and that ran decently (aside some weirdness I'll explain below), but I try running some of the sample code and other stuff I compile on Visual Studio, and it's unbelievably slow.

I tried the samples here on XamlPad... I can click on a button at a rate of about 2-3 times a second, and my CPU usage will jolt up to 100%. Most other sample applications run just as slow. Max runs okay, except that it takes about 40% of my CPU time even when it's minimized.

By the way, is there something I can do about text being blurry

Here are some of my machine specs:
Pentium 4c 2.4ghz HT
1gb DDR 400 dual channel RAM
ATI Radeon 9600 128mb (full DX9 and PS2 support), recent drivers
DirectX 9.0c
September WinFX CTP, Summer VS.NET 2005
Windows XP SP2

Thanks in advance,
Rei



Answer this question

WPF apps slow for some reason

  • DamianH

    Hi,

    I finally managed to get the newest WPF CTP (November) running on my computer, so I tried again, but I'm still experiencing the same slowness.

    Any sort of interaction with any control seems to make it slow, especially buttons and such. And it seems to be in both XamlPad as well as in a simple app compiled with the WPF template in VS2005.

    I'm on the same machine as before, except with the most recent video card driver.

    Clicking on the buttons 2-3 times consumes 100% CPU time with the following code from the Quick Start tutorial on msdn here:

    <DockPanel xmlns="http://schemas.microsoft.com/winfx/avalon/2005"> <TextBlock Background="LightBlue" DockPanel.Dock="Top">Some Text</TextBlock> <TextBlock DockPanel.Dock="Bottom" Background="LightYellow">Some text at the bottom of the page.</TextBlock> <TextBlock DockPanel.Dock="Left" Background="Lavender">Some More Text</TextBlock> <DockPanel Background="Bisque"> <StackPanel DockPanel.Dock="Top"> <Button HorizontalAlignment="Left" Height="30px" Width="100px" Margin="10,10,10,10">Button1</Button> <Button HorizontalAlignment="Left" Height="30px" Width="100px" Margin="10,10,10,10">Button2</Button> </StackPanel> <TextBlock Background="LightGreen">Some Text Below the Buttons</TextBlock> </DockPanel> </DockPanel>

  • YAWAR

    Hey, Teymur, you should tell us your hardware specs first

    Sheva


  • Oanimao

  • Jake247

    Hello Rei -

    Check out our performance whitepaper; it may have useful information for optimizing your application's performance.

    Thanks

  • BobLoblaw

    It's at 32 bit.

    It seems to be worst when there's a lot of interaction -- text boxes, buttons etc. Images and animations seem to be fine.


  • robert_h19690

    Rei, does the slowness ONLY occur when running sample in XamlPad   If so, then I'm thinking some version incompatibility, or something went wrong during one of the CTP installs.

    Just in case it is an install issue, I've cut and pasted the instructions I wrote to myself, for developing under Visual Studio.  I'm not using XamlPad, so I don't know if you need all 4 pieces below for what you are doing.

    ----------------------------
    Here are the four pieces that need to be compatible (and it matters what
    order they are installed) - do you have all 3 of the September CTP pieces :

    #1. WinFX Runtime Components - September CTP - 9/14/2005
    http://www.microsoft.com/downloads/details.aspx familyid=FFD636F0-86E9-41E8-9E1C-100A4CC4888F&displaylang=en

    #2. WinFX SDK - September CTP - 9/14/2005
    http://www.microsoft.com/downloads/details.aspx FamilyId=C20CC6C8-1F4E-4A5C-BC79-C2FE9ABE69AA&displaylang=en

    #3. One of the Beta 2 versions of Vis Studio 2005, currently online at
    MSDN Subscriber Downloads > Developer Tools > Visual Studio 2005 >
    Visual Studio 2005 Beta 2 > English >
    . Visual Studio 2005 [..Professional, Standard, or Team Suite..] Beta 2
    -or-
    Visual Studio 2005 Express Products Beta 2 > English >
    . Visual [C#, etc.] 2005 Express Beta 2

    *** NOTE: NOT the "Release Candidate" that is currently available elsewhere
    for download ***

    #4. Visual Studio Extensions for WinFX - September CTP
    http://www.microsoft.com/downloads/details.aspx FamilyId=EDE1A645-2A53-42E1-8482-3BF1FADADE06&displaylang=en

    *** NOTE: the FIRST thing to try, is REINSTALLING piece #4 ***
    ----------------------------

    ----- ToolmakerSteve


  • kasmatt2000

    Thank you for immediate answer. I simple selected file/new/project and winfx application. and placed button on it. The clicked F5. That is what I have done and result is slow. For your solution: I am beginnner in WINFX and VS 2005 EinFX templates. Where do I i have to check this option Thanks in advance. Teymur
  • Peter Gissel

    It occurs with practically everything. And yes, I've tried uninstalling and reinstalling everything in that order several times.

    I probably messed up some installs along the way; every time I reinstall things seem to get worse and worse. Now .xaml icons don't show up properly, and WinFX Beta 1 doesn't work either.

    So I've given up for now. I'll give it another shot if I ever get my hands on a copy of Vista :)

  • KamranB

    What bit rate is your monitor set at Currently we only do hardware acceleration if you are set at 32 bit color.

    -Arik Cohen


  • TranceShadow

    Hi, thanks for responding.

    I get a 403 when I click on the link on the page for some reason... I'll try again tomorrow.

    Thanks!

  • kedens

    Make sure you don't have any transparent windows running, this will bring down the performance in all wpf-apps.


  • asmenut

  • GeoBest

    Pentium 4

    1.8 GHz

    40G HDD

    64 MB video card

    Is it OK

    Thanks in advance


  • Vinay Chopra

    Dear All.

    I installed 2006 June CTP. I am in XP Service Pack2.

    AS Rei Miyasaka told, it is very slow when running application with simply only one button.

    Why it is slow Have you found solution for it I work with VS 2005 WinFX template - Windows application.

    Thanks in advance

    Teymur


  • WPF apps slow for some reason