(cmds: CachedArray<T>)
| 78 | } |
| 79 | |
| 80 | public freeCmds (cmds: CachedArray<T>): void { |
| 81 | const cmdLength = cmds.length; |
| 82 | for (let i = 0; i < cmdLength; ++i) { |
| 83 | if (--cmds.array[i].refCount === 0) { |
| 84 | this._freeCmds.push(cmds.array[i]); |
| 85 | } |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | public release (): void { |
| 90 | const freeCmdLength = this._freeCmds.length; |