参考 disableFriendlyErrors

disableFriendlyErrors

Turns off the parts of the Friendly Error System (FES) that impact performance.

The FES can cause sketches to draw slowly because it does extra work behind the scenes. For example, the FES checks the arguments passed to functions, which takes time to process. Disabling the FES can significantly improve performance by turning off these checks.

示例

Notice any errors or typos? Please let us know. Please feel free to edit src/core/main.js and open a pull request!

相关参考