当用Profiler分析到不是代码导致的性能问题,当前场景最大的性能瓶颈是渲染时,或者自己写的Shader要调试时,都可以用Frame Debugger进行调试。

按下列步骤设置打包,既可以用Profiler又可以用Frame Debugger连接Android真机:

① 手机开启开发者模式和USB调试

②  Building Setting勾选Development Build,Autoconnect Profiler,Script Debugging。勾选Player Setting中的Multithreaded Rendering。

      点击Building And Run。打包成功后程序运行起来

③   Window->Profiler,选择AndroidPlayer(ADB@127.0.0.1:34999),选中Record开始用Profiler监测。

④   Window->Frame Debugger,选择AndroidPlayer(ADB@127.0.0.1:34999),选中Record开始用Frame Debugger监测。

相关文章:

  • 2021-09-25
  • 2021-12-12
  • 2021-12-29
  • 2021-09-20
  • 2021-10-25
猜你喜欢
  • 2022-12-23
  • 2021-04-07
  • 2021-09-30
  • 2021-10-18
  • 2021-09-30
相关资源
相似解决方案