Waiting for application to become ready for input: xxxx Reason: Waiting because the touched window has not finished processing the input events that were previously delivered to it.
- 在onTouchEvevent里避免做耗时操作。
- 在Move里避免生成对象,过多的new新对象会导致虚拟机来不及释放。(Wait for concurrent GC blocked)
问题提供者:H!ccup
本文针对应用程序中出现的等待输入现象进行了分析,并给出了具体的优化建议。指出在onTouchEvent中应避免进行耗时操作,在Move中避免频繁创建新对象,以减少虚拟机垃圾回收的压力。

820

被折叠的 条评论
为什么被折叠?



