WPF GUI Performance with a large number of parallel tasks

后端 未结 3 533
清歌不尽
清歌不尽 2021-01-28 07:23

I developed a small client (WPF) to make some stress test on our systems. Essentially it has to call various methods on an Asp.Net WebApi endpoint in parallel.

Each time

3条回答
  •  长发绾君心
    2021-01-28 07:36

    Are you handling those API events by invoking to the UI context? If you have many invocations occurring you will flood the dispatcher with operations and cause the UI to hang and lag behind user input.

    Try batching the UI updates.

提交回复
热议问题