Debug & Profiling

Overview

The editor includes built-in debug and profiling tools for monitoring performance and viewing engine logs.

Stats Panel

The Stats Panel displays real-time performance metrics:

  • FPS counter
  • Frame time (ms) with rolling graph
  • Entity count

Console Panel

The Console Panel shows engine and script log output with filtering:

  • Color-coded log levels (info / warning / error)
  • Toggle visibility per log level
  • Clear button
  • Auto-scroll

Debug Draw

The engine uses an internal debug drawing system for visualizing colliders and other debug geometry. This is handled automatically — collider shapes are drawn as wireframes when entities with physics components are selected.

Integration Notes

  • Stats and Console panels are docked in the editor by default
  • Debug draw uses a separate shader (inline, no external files needed)
  • Debug draw lines are cleared after each render call