|
Hey all, I'm using Visual Studio 2008 to work on an XBAP. While using the Xaml Designer to edit the XML of various things the designer is very, very, VERY slow. When I click on something like a text box or label it pauses for 5-10 seconds before selecting it. If I choose something else the same thing happens. I don't know how much more descriptive I can be besides I click, I wait, and wait... and wait some more, and then what I've selected becomes highlighted. None of the other members of my team are experiencing this. Are there any settings I should check or uncheck to speed things up? A hotfix maybe? Anything? Thanks a lot! System Microsoft Windows XP Professional Veresion 202 Service Pack 3 Computer MacBook Pro Intel(R) Core(TM)2 CPU T7400 @2.16GHz 2.16GHz, 2.96GB of RAM Microsoft Visual Studio 2008 Version 9.0.30729.1 SP Microsoft .NET Framework Version 3.5 SP1 Installed Edition: Standard Microsoft Visual Basic 2008 91179-136-2274445-60787 Microsoft Visual C# 2008 91179-136-2274445-60787 Microsoft Visual C++ 2008 91179-136-2274445-60787 Microsoft Visual Web Developer 2008 91179-136-2274445-60787 Enterprise Library Configuration Editor 4.0 Microsoft patterns & practices Enterprise Library Configuration Editor Microsoft XNA Game Studio 3.0 Build 3.0.11010.0 | | ZenkeiRich Wednesday, July 22, 2009 7:56 AM | Hi ZenkeiRich
This is certainly not normal behavior. Are all of your colleagues using similar machines to you? Do you see similar slowdowns in running WPF applications on that machine?
It sounds like you prefer to use the designer for your work, so this may not be a useful suggestion, however if you do not need the design view of the application, you can speed things up by switching to XAML only view using Tools...Options...Text Editor...XAML...Miscellaneous...Always open documents in full XAML view. This will prevent the design surface from loading and will speed performance for users who prefer to work entirely in XAML. You can always load the designer "on demand" when in this mode by switching to it and clicking the load link.
Mark
Mark Wilson-Thomas - Program Team - WPF & SL Designer for Visual Studio - posts are provided 'as-is' | | Mark Wilson-Thomas Monday, July 27, 2009 8:04 PM | is there anything else running on your machine like say anti virus? usually things like anti virus scans tend to take up lot of CPU thus slowing down all other processes MVP Solution Architect | | Atul Gupta Friday, July 31, 2009 11:55 AM | Mark, My colleagues are using a variety of machines, at least one of them is using a MacBook, but I believe it's a different model than mine is. None of my colleagues seem to be experience this problem. Once during a code review they even commented on how slow editing XAML was on my computer. I don't see slowdowns when running WPF applications, only when editing a XAML with the design view open. I've only been loading the designer when I need to, but I'd prefer to use it as the designer when possible as it's much easier to visually see the changes I've made. Besides avoiding the design view alltogether, are there any other settings or tweaks I could try to speed things up? Thanks. Zenkei Rich
| | ZenkeiRich Tuesday, September 01, 2009 2:42 AM | Zenkei,
Mark will be back next week, I'm chiming in to provide some additional help in the mean time.
These are things I would look at if I was sitting at your computer.
Clean out your temp folders, clear your browser cacheand reboot into Safe Mode. When clearing temp folders clear the windows\temp and your personal temp folders.
Run defrag the harddisk at least twice, maybe three times.
Restart system normally.
How many applications load on a cold boot? Do you have a lot of icons in your system tray? If so, are there applications you can not load on start?
Can you use the task manager to display your CPU usage when the designer is in view, dragging a Button to the design surace? Where is the CPU usage?
Does this happen on all projects, even a new project with an empty window?
Do you have any other slower than normal applications? In other words, if you went side by side with a colleague, would other applications perform the same.
How big is your swap file? Is it a fixed size or is it being controlled by windows?
Cheers, Karl - Microsoft Product Team, Code Project MVP - http://karlshifflett.wordpress.com/ | | karl140.6 Tuesday, September 01, 2009 3:00 PM | I was so frustrated with the performance of VS2008 when editing XAML on my Dell Latitude that I bought a new Dell Studio XPS loaded w/:
Core2 Duo T9600 @ 2.80 GHz 8.00 GB RAM Vista 64-bit
I've had my development environment setup for a few days now and everything is lightening fast...except for editing XAML. I'm experiencing the same performance issues as described above. In addition, VS sometimes hangs up indefinitely while building. In fact, it's hung as I post this.
My colleagues have various configurations on Dell and HP laptops. All report sameexperience. | | JDonoghue Thursday, September 17, 2009 2:25 AM |
|