Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

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.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

Fixing delays in UI response time

Closed Thread
 
Thread Tools Display Modes
Old 01-05-2007   #1 (permalink)
Philippe Lavoie
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.
Old 01-05-2007   #2 (permalink)
Paul Czywczynski
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


Old 01-05-2007   #3 (permalink)
Paul Czywczynski
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


Old 01-05-2007   #4 (permalink)
Philippe Lavoie
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
Old 01-05-2007   #5 (permalink)
Philippe Lavoie
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
Old 01-05-2007   #6 (permalink)
Paul Czywczynski
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


Old 01-05-2007   #7 (permalink)
Paul Czywczynski
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


Old 01-17-2007   #8 (permalink)
Mark Smith
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

Old 01-17-2007   #9 (permalink)
Mark Smith
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

Old 01-21-2007   #10 (permalink)
Bill Henning
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
>



Closed Thread

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








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50