# wx.setPreferredFramesPerSecond(number fps)

Modifies the rendering frame rate. The default value is 60 frames/sec. After modification, the callback interval of requestAnimationFrame will be changed.

# Parameters

# number fps

The frame rate. Valid range: 1-60.

点击咨询小助手