The diagnostic overlay provides a beginner-friendly window into what the application is doing in real time. It displays the latest logs, a rolling frame rate estimate, and a button to export logs.
Creates a diagnostics panel that subscribes to a shared logger.
Inserts the overlay into the provided host element.
Records a new frame duration and updates the displayed frame rate summary.
Removes event listeners when the application shuts down.
The diagnostic overlay provides a beginner-friendly window into what the application is doing in real time. It displays the latest logs, a rolling frame rate estimate, and a button to export logs.