用MacbookPro 32G i7 独显 的高配打开项目发现异常卡顿, Win平台没有问题

打开Unity的Profiler DeepProfiler. 发现完全是卡在 dns.gethostname上, 长达10s (有两次调用, 单次 5s)

 MacOSX 运行Unity卡顿 [gethostname]

 

 

Google之, 发现的确有这个问题, 于是参考帖子的解决方案, 在hosts里加了HostName. 再开项目立马流畅了

 

坑!!!

 

 

https://stackoverrun.com/cn/q/1019370

https://stackoverflow.com/questions/33289695/inetaddress-getlocalhost-slow-to-run-30-seconds

相关文章:

  • 2021-08-17
  • 2021-10-11
  • 2022-01-14
  • 2021-10-25
  • 2021-11-04
猜你喜欢
  • 2021-12-16
  • 2021-11-28
  • 2021-08-26
  • 2021-04-04
  • 2021-10-09
  • 2021-11-19
  • 2022-01-06
相关资源
相似解决方案