Entries from 2022-09-01 to 1 month

排查 Unity 游戏在 iOS 平台的内存泄露问题

问题 排查 Allocation 工具 autoreleasepool 查看 observer 的回调函数 比较 CFArrayGetValueAtIndex 其他 Allocation 中显示的调用栈没有显示 CFArrayGetValueAtIndex 的原因 获取进程占用的内存 链接 问题 在游戏的大厅场景,放着不动,总内存占用一直在增…

排查 Unity 中使用 HttpClient 导致游戏卡住一段时间的问题

问题 项目尝试使用 HttpClient 下载 AssetBundle,测试时发现有可能导致编辑器卡住一段时间。 下载的代码逻辑大致如下: using var request = new HttpRequestMessage(HttpMethod.Get, url); using (HttpResponseMessage response = await httpClient.SendAs…