My WPF application has a feature whereby it renders a large number of images in the background while updating the UI whenever a new image is ready.
Profiling this process has shown that Application.Run
is the function doing the most work, at 43%, with the "second most expensive" spot shared by three graphics APIs, each at 6%.
What might I be doing that would cause so much time to be spent in Application.Run
? It seems that the core of this method is running the main dispatcher for my app, but that doesn't help me figure out what it is that the dispatcher is doing so much. Can I get a more fine-grained profile?
Note: I mean System.Windows.Application.Run
.