()
| 496 | } |
| 497 | |
| 498 | function clearMetricsDisplay(): void { |
| 499 | setElementText('fpsDisplay', '--'); |
| 500 | setElementText('frameTimeDisplay', '--'); |
| 501 | setElementText('memoryDisplay', '--'); |
| 502 | setElementText('frameDropsDisplay', '--'); |
| 503 | setElementText('totalFramesDisplay', '--'); |
| 504 | setElementText('elapsedDisplay', '--'); |
| 505 | |
| 506 | if (frameGraph) { |
| 507 | frameGraph.clear(); |
| 508 | } |
| 509 | |
| 510 | const fpsEl = document.getElementById('fpsDisplay'); |
| 511 | if (fpsEl) { |
| 512 | fpsEl.setAttribute('data-quality', 'smooth'); |
| 513 | } |
| 514 | } |
| 515 | |
| 516 | // ============================================================================ |
| 517 | // Main Benchmark Logic |
no test coverage detected