微信8.0.50 点击屏幕在Android设备卡顿严重?
var accCnt = 0; function handleTouchEvent(res, callback) { accCnt = accCnt + 1 if (accCnt > 4) return const dataPtr = convertOnTouchStartListenerResultToPointer({ touches: res.touches.map(v => formatTouchEvent(v, res.type)), changedTouches: res.changedTouches.map(v => formatTouchEvent(v, res.type)), timeStamp: parseInt(res.timeStamp.toString(), 10), }); GameGlobal.Module.dynCall_viii(callback, dataPtr, res.touches.length, res.changedTouches.length); GameGlobal.Module._free(dataPtr); } 我将代码拦截之后,无论点击按钮还是非按钮,会出现验证卡顿,Profile一切正常