Processing messages is too slow, resulting in a jerky, unresponsive UI - how can I use multiple threads to alleviate this?

前端 未结 3 1970
日久生厌
日久生厌 2021-01-06 16:49

I\'m having trouble keeping my app responsive to user actions. Therefore, I\'d like to split message processing between multiple threads.

Can I simply create severa

3条回答
  •  梦谈多话
    2021-01-06 17:21

    Create the separate thread when processing the long operation i.e. keep it simple, the issue is with some code you are running that is taking too long, that's the code that should have a separate thread.

提交回复
热议问题