Instantiates a new DebugPanel, assembling HTML overlay DOM elements.
Swapchain target canvas reference used to determine parent mount hierarchies.
Active PerformanceTracker.
Active VRAMTracker.
UI styling options.
Tears down active key listeners and deletes container elements from the document tree.
Forces the panel to hide.
Forces the panel to display.
Toggles visibility states.
Triggers overlay repaints. Refresh rates are throttled based on active tab requirements to prevent DOM thrashes and performance bottlenecks.
DebugPanel coordinates an HTML/CSS screen overlay debug dashboard. Generates tabbed views, captures rendering performance metrics, outlines active VRAM allocation sizes, registers key listeners (
F3by default) to toggle overlay visibility, and draws historical FPS bars on a Canvas element.