Rezi
    Preparing search index...

    Function debugPanel

    • Create a debug panel widget.

      The panel displays real-time debug information in a compact format. Position it in a corner using the position prop.

      Parameters

      Returns VNode

      A VNode representing the debug panel

      // In your view function
      app.view((state) => {
      return ui.layers([
      MainContent(state),
      debugPanel({
      stats: state.debugStats,
      fps: state.fps,
      frameTimeMs: state.frameTimeMs,
      showFps: true,
      showFrameTime: true,
      showErrors: true,
      }),
      ]);
      });