1

I really need to calculate responsiveness of my UI. Some suggested to use WpfPerf.exe (performance profiling tools for WPF). It works great however it does not have logging so it shows only last 1 minute of FPS as image.

However i need statistical information. The gui runs laggy so i need to record when exactly gui is refreshed. When there is no lag it should be refreshed each 0.5 seconds.

So i wonder anyhow i can record the time whenever gui is refreshed ?

.net 4.5.2 c# wpf

Furkan Gözükara
  • 22,964
  • 77
  • 205
  • 342
  • Add a [CompositionTarget.Rendering](https://msdn.microsoft.com/en-us/library/system.windows.media.compositiontarget.rendering.aspx) handler. – Clemens Apr 11 '15 at 23:17

1 Answers1

1

To record the time the GUI is refreshed. You may refer to Why is Frame Rate in WPF Irregular and Not Limited To Monitor Refresh?

It may be out of topic. I would like to share what I do to improve my application last week.

  • Use visual studio performance and diagnostic, if available, to find bottleneck.
  • use BackgroundWorker to prepare data, instead of doing it in UI thread.
  • use data virtulization for dispalying huge amount data, for example million rows. This article provides an excellent solution for displaying millon rows data smoothly.

Hope It will help.

Community
  • 1
  • 1
samuel
  • 31
  • 2