cc.checkGLErrorDebug这个函数耗时特别多

在chrome上测试cc.checkGLErrorDebug这个函数每帧耗时特别多,达到了16ms以上,这是干什么用的

/**
 * Check webgl error.Error will be shown in console if exists.
 * @method checkGLErrorDebug
 */
cc.checkGLErrorDebug = function () {
    if (cc._renderType === cc.game.RENDER_TYPE_WEBGL) {
        var _error = cc._renderContext.getError();
        if (_error) {
            cc.logID(2400, _error);
        }
    }
};

这个函数只有在 CC_DEV 为 true 也就是开发环境中才会调用。