![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | Fixing delays in UI response time My application's responsiveness is getting really bad when the user modifies a text box. There is a big noticable delay between the time I enter a character and the time the control gets the focus back (and displays the character). Since a large team of individuals have been working on this project, it's hard for me to pinpoint what went wrong. Is there a place somewhere that I can use that would tell me where the code is between the key-press event and the time it takes to see it on screen (barely sub-second). I do set the args.Handled = true event after I dealt with the key stroke. thanks Phil PS Looking at the performance logs and other WPF tool doesn't seem to yield a lot of good information for my xbap application. |
| | #2 (permalink) |
| Guest | Re: Fixing delays in UI response time Hello Philippe, > My application's responsiveness is getting really bad when the user > modifies a text box. There is a big noticable delay between the time I > enter a character and the time the control gets the focus back (and > displays the character). > > Since a large team of individuals have been working on this project, > it's hard for me to pinpoint what went wrong. Is there a place > somewhere that I can use that would tell me where the code is between > the key-press event and the time it takes to see it on screen (barely > sub-second). > > I do set the args.Handled = true event after I dealt with the key > stroke. > > thanks > > Phil > > PS Looking at the performance logs and other WPF tool doesn't seem to > yield a lot of good information for my xbap application. > We ran into problem with shadows on a popup we had. Once we removed the drop shadow affect the type-delay issue went away. Hope that helps. -Paul |
| | #3 (permalink) |
| Guest | Re: Fixing delays in UI response time Hello Philippe, > My application's responsiveness is getting really bad when the user > modifies a text box. There is a big noticable delay between the time I > enter a character and the time the control gets the focus back (and > displays the character). > > Since a large team of individuals have been working on this project, > it's hard for me to pinpoint what went wrong. Is there a place > somewhere that I can use that would tell me where the code is between > the key-press event and the time it takes to see it on screen (barely > sub-second). > > I do set the args.Handled = true event after I dealt with the key > stroke. > > thanks > > Phil > > PS Looking at the performance logs and other WPF tool doesn't seem to > yield a lot of good information for my xbap application. > We ran into problem with shadows on a popup we had. Once we removed the drop shadow affect the type-delay issue went away. Hope that helps. -Paul |
| | #4 (permalink) |
| Guest | Re: Fixing delays in UI response time Paul Czywczynski wrote: > Hello Philippe, > >> My application's responsiveness is getting really bad when the user >> modifies a text box. There is a big noticable delay between the time I >> enter a character and the time the control gets the focus back (and >> displays the character). >> >> Since a large team of individuals have been working on this project, >> it's hard for me to pinpoint what went wrong. Is there a place >> somewhere that I can use that would tell me where the code is between >> the key-press event and the time it takes to see it on screen (barely >> sub-second). >> >> I do set the args.Handled = true event after I dealt with the key >> stroke. >> >> thanks >> >> Phil >> >> PS Looking at the performance logs and other WPF tool doesn't seem to >> yield a lot of good information for my xbap application. >> > > We ran into problem with shadows on a popup we had. Once we removed the > drop shadow affect the type-delay issue went away. Hope that helps. > > -Paul > I tried to remove all the shadows on my project. But it didn't help. Thanks for the suggestion though. It's kind of weird that a drop shadow would do this on a final release of WPF though. Phil |
| | #5 (permalink) |
| Guest | Re: Fixing delays in UI response time Paul Czywczynski wrote: > Hello Philippe, > >> My application's responsiveness is getting really bad when the user >> modifies a text box. There is a big noticable delay between the time I >> enter a character and the time the control gets the focus back (and >> displays the character). >> >> Since a large team of individuals have been working on this project, >> it's hard for me to pinpoint what went wrong. Is there a place >> somewhere that I can use that would tell me where the code is between >> the key-press event and the time it takes to see it on screen (barely >> sub-second). >> >> I do set the args.Handled = true event after I dealt with the key >> stroke. >> >> thanks >> >> Phil >> >> PS Looking at the performance logs and other WPF tool doesn't seem to >> yield a lot of good information for my xbap application. >> > > We ran into problem with shadows on a popup we had. Once we removed the > drop shadow affect the type-delay issue went away. Hope that helps. > > -Paul > I tried to remove all the shadows on my project. But it didn't help. Thanks for the suggestion though. It's kind of weird that a drop shadow would do this on a final release of WPF though. Phil |
| | #6 (permalink) |
| Guest | Re: Fixing delays in UI response time Hello Philippe, > Paul Czywczynski wrote: > >> Hello Philippe, >> >>> My application's responsiveness is getting really bad when the user >>> modifies a text box. There is a big noticable delay between the time >>> I enter a character and the time the control gets the focus back >>> (and displays the character). >>> >>> Since a large team of individuals have been working on this project, >>> it's hard for me to pinpoint what went wrong. Is there a place >>> somewhere that I can use that would tell me where the code is >>> between the key-press event and the time it takes to see it on >>> screen (barely sub-second). >>> >>> I do set the args.Handled = true event after I dealt with the key >>> stroke. >>> >>> thanks >>> >>> Phil >>> >>> PS Looking at the performance logs and other WPF tool doesn't seem >>> to yield a lot of good information for my xbap application. >>> >> We ran into problem with shadows on a popup we had. Once we removed >> the drop shadow affect the type-delay issue went away. Hope that >> helps. >> >> -Paul >> > I tried to remove all the shadows on my project. But it didn't help. > Thanks for the suggestion though. > > It's kind of weird that a drop shadow would do this on a final release > of WPF though. > > Phil > We've also had problems with bitmap effects. We had to remove an outerglow because of the same problem. This occured in RC2 and the RTM. <Border.BitmapEffect><OuterGlowBitmapEffect /></Border.BitmapEffect> -Paul |
| | #7 (permalink) |
| Guest | Re: Fixing delays in UI response time Hello Philippe, > Paul Czywczynski wrote: > >> Hello Philippe, >> >>> My application's responsiveness is getting really bad when the user >>> modifies a text box. There is a big noticable delay between the time >>> I enter a character and the time the control gets the focus back >>> (and displays the character). >>> >>> Since a large team of individuals have been working on this project, >>> it's hard for me to pinpoint what went wrong. Is there a place >>> somewhere that I can use that would tell me where the code is >>> between the key-press event and the time it takes to see it on >>> screen (barely sub-second). >>> >>> I do set the args.Handled = true event after I dealt with the key >>> stroke. >>> >>> thanks >>> >>> Phil >>> >>> PS Looking at the performance logs and other WPF tool doesn't seem >>> to yield a lot of good information for my xbap application. >>> >> We ran into problem with shadows on a popup we had. Once we removed >> the drop shadow affect the type-delay issue went away. Hope that >> helps. >> >> -Paul >> > I tried to remove all the shadows on my project. But it didn't help. > Thanks for the suggestion though. > > It's kind of weird that a drop shadow would do this on a final release > of WPF though. > > Phil > We've also had problems with bitmap effects. We had to remove an outerglow because of the same problem. This occured in RC2 and the RTM. <Border.BitmapEffect><OuterGlowBitmapEffect /></Border.BitmapEffect> -Paul |
| | #8 (permalink) |
| Guest | Re: Fixing delays in UI response time The problem is that when you apply a bitmap effect to a Visual, WPF responds by converting that visual to a bitmap, applying the effect and then rendering it. This bypasses most of the acceleration pipeline and as a result, it must rely on software rendering for the whole process. Bottom line is that bitmap effects on visuals force software rendering and that will directly impact performance if you use a lot of them. Mark Smith |
| | #9 (permalink) |
| Guest | Re: Fixing delays in UI response time The problem is that when you apply a bitmap effect to a Visual, WPF responds by converting that visual to a bitmap, applying the effect and then rendering it. This bypasses most of the acceleration pipeline and as a result, it must rely on software rendering for the whole process. Bottom line is that bitmap effects on visuals force software rendering and that will directly impact performance if you use a lot of them. Mark Smith |
| | #10 (permalink) |
| Guest | Re: Fixing delays in UI response time Philippe, I agree that bitmap effects definitely slow down response time. But also, I've found that running an application with a debugger attached also slows down the user interface. For instance, in our WPF Wizard dialog control, we have animated transitions between pages. If you run our sample in debug mode via Visual Studio, the transitions are definitely not "smooth". However if you run the application directly from Windows Explorer, everything runs must better. I've seen this with other aspects of the WPF UI as well. So if you are seeing a lag, make sure you try your app outside of the debugger as well to see if that helps since that is what the end user will see. -- Bill Henning Actipro Software WPF Wizard Control - http://www.actiprosoftware.com/Produ...d/Default.aspx "Mark Smith" <mark.julmar@gmail.com> wrote in message news:1169034668.485798.265710@s34g2000cwa.googlegroups.com... > The problem is that when you apply a bitmap effect to a Visual, WPF > responds by converting that visual to a bitmap, applying the effect and > then rendering it. This bypasses most of the acceleration pipeline and > as a result, it must rely on software rendering for the whole process. > Bottom line is that bitmap effects on visuals force software rendering > and that will directly impact performance if you use a lot of them. > > Mark Smith > |
| |
| |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Delays when using a PC not connected to Domain | luke | Vista performance & maintenance | 0 | 12-19-2007 08:14 PM |
| Refreshing Metadata Delays | Blue Max | Vista mail | 5 | 10-19-2007 09:44 AM |
| Slow response time / freeze after fresh install of Vista | Chris in NYC | Vista installation & setup | 5 | 06-29-2007 07:58 PM |
| delays in vista | Andy | Vista General | 2 | 06-15-2007 05:08 PM |
| Beta Client response time from Microsoft | David Wilkinson | Vista General | 2 | 09-06-2006 09:46 AM |