* 更新池管理器(应在游戏循环中调用)
()
| 37 | * 更新池管理器(应在游戏循环中调用) |
| 38 | */ |
| 39 | public update(): void { |
| 40 | const now = Date.now(); |
| 41 | |
| 42 | if (now - this.lastCompactTime > this.autoCompactInterval) { |
| 43 | this.compactAllPools(); |
| 44 | this.lastCompactTime = now; |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | /** |
| 49 | * 创建或获取标准池 |
nothing calls this directly
no test coverage detected