perf: 优化战斗系统内存与性能,增加对象池限制与内存监控面板
- 为Skill和Monster对象池添加最大容量限制(64/24),防止内存泄漏 - 实现DamageQueueComp的环形队列优化,减少数组操作开销 - 在MissionComp中添加内存监控面板,实时显示堆内存、实体数量、对象池状态 - 优化MoveSystem的渲染排序性能,缓存查询结果减少GC压力 - 调整角色控制器UI位置与样式,关闭调试日志减少性能开销 - 战斗结束时自动清理对象池,确保内存可回收
This commit is contained in:
@@ -184,7 +184,7 @@
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 1120,
|
||||
"y": 1070,
|
||||
"z": 0
|
||||
},
|
||||
"_lrot": {
|
||||
@@ -196,8 +196,8 @@
|
||||
},
|
||||
"_lscale": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 1,
|
||||
"y": 1,
|
||||
"x": 2,
|
||||
"y": 2,
|
||||
"z": 1
|
||||
},
|
||||
"_mobility": 0,
|
||||
@@ -234,7 +234,7 @@
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"y": -50.705,
|
||||
"z": 0
|
||||
},
|
||||
"_lrot": {
|
||||
@@ -275,7 +275,7 @@
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 200,
|
||||
"height": 100
|
||||
"height": 200
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
@@ -305,9 +305,9 @@
|
||||
"_dstBlendFactor": 4,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"r": 0,
|
||||
"g": 0,
|
||||
"b": 0,
|
||||
"a": 255
|
||||
},
|
||||
"_spriteFrame": {
|
||||
@@ -373,7 +373,7 @@
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"y": 67.606,
|
||||
"z": 0
|
||||
},
|
||||
"_lrot": {
|
||||
@@ -2674,6 +2674,8 @@
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "a2T+9jtpFDK6TbGmUuF01c",
|
||||
"instance": null,
|
||||
"targetOverrides": null,
|
||||
"nestedPrefabInstanceRoots": null
|
||||
},
|
||||
{
|
||||
@@ -3667,6 +3669,8 @@
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "92fF6VNGhL4KGhc565gFRM",
|
||||
"instance": null,
|
||||
"targetOverrides": null,
|
||||
"nestedPrefabInstanceRoots": null
|
||||
},
|
||||
{
|
||||
@@ -5593,6 +5597,8 @@
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "24VpHkRBxCuZkdMazUpc/Y",
|
||||
"instance": null,
|
||||
"targetOverrides": null,
|
||||
"nestedPrefabInstanceRoots": null
|
||||
},
|
||||
{
|
||||
@@ -8937,6 +8943,7 @@
|
||||
"__id__": 397
|
||||
},
|
||||
"debugMode": false,
|
||||
"showMemoryPanel": true,
|
||||
"coins_node": null,
|
||||
"lv_node": null,
|
||||
"chou_node": null,
|
||||
|
||||
Reference in New Issue
Block a user