* Get render statistics * 获取渲染统计
()
| 224 | * 获取渲染统计 |
| 225 | */ |
| 226 | public getStats(): IRenderStats & { textureCount: number; fontCount: number } { |
| 227 | const backendStats = this._backend.getStats(); |
| 228 | return { |
| 229 | ...backendStats, |
| 230 | textureCount: this._textureCache.size, |
| 231 | fontCount: this._fontCache.size |
| 232 | }; |
| 233 | } |
| 234 | |
| 235 | /** |
| 236 | * Dispose the bridge and all resources |