Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Fixing delays in UI response time

 
 
Old 01-05-2007   #1 (permalink)
Philippe Lavoie


 
 

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.

My System SpecsSystem Spec
Old 01-05-2007   #2 (permalink)
Paul Czywczynski


 
 

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


My System SpecsSystem Spec
Old 01-05-2007   #3 (permalink)
Philippe Lavoie


 
 

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
My System SpecsSystem Spec
Old 01-05-2007   #4 (permalink)
Paul Czywczynski


 
 

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


My System SpecsSystem Spec
Old 01-17-2007   #5 (permalink)
Mark Smith


 
 

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

My System SpecsSystem Spec
Old 01-21-2007   #6 (permalink)
Bill Henning


 
 

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
>



My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
response time of 'create mail' Vista mail
Response time Chillout Room
Monitor Response Time Gaming
long time bug needs fixing Vista mail
Beta Client response time from Microsoft Vista General


Vista Forums 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 Ltd

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