mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2024-12-25 03:08:29 +00:00
修复 WebSocket 性能数据错误
This commit is contained in:
parent
ae5bbae81d
commit
07447c1745
Binary file not shown.
After Width: | Height: | Size: 81 KiB |
Binary file not shown.
After Width: | Height: | Size: 92 KiB |
@ -13,13 +13,13 @@ description: "在多线程中使用 WebSocket。"
|
||||
|
||||
下面是在 Android 设备上,在优化前对游戏帧耗时的分析图:
|
||||
|
||||
![alt text](./assets/th-a.png)
|
||||
![alt text](./assets/tws_2.png)
|
||||
|
||||
下面是优化后:
|
||||
|
||||
![alt text](./assets/th-b.png)
|
||||
![alt text](./assets/tws_1.png)
|
||||
|
||||
可以看到网络请求的耗时从 ms 降低至 ms。
|
||||
可以看到网络请求的耗时从 5.8ms 降低至 0.7ms。
|
||||
|
||||
:::caution 注意
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user