# FPS panel

Base library 2.2.1 Support begins, and the lower version does not take effect.

To make it easier for developers to debug the interaction performance of the rendering layer, the Weixin Mini Program base library provides the option to open the FPS panel, and developers can view the rendering layer frame rate in real time.

# How to enable it

In apagejson, the following configuration enables the FPS panel in Weixin Mini Program to display the current real-time frame rate and the range of frame rate fluctuations in the previous window.

{
  "debugOptions": {
    "enableFPSPanel": true
  }
}

Please note that you do not bring this configuration item to the official version.

# Instructions

  • requestAnimationFrameCallbacks, drawn using canvas, may have some additional performance overhead on their own, but can generally be ignored;
  • The FPS panel can be dragged to any position on the screen;
  • When same-layer rendering is not enabled, the FPS panel may be obscured by native components.