web在ios14上的明显卡顿问题，请问该怎么解决？

Eaglesmvp
Mon, 11 Oct 2021 02:41:52 +0000

const isIos14Or15 = /iPhone OS 14/.test(window.navigator.userAgent) || /iPhone OS 15/.test(window.navigator.userAgent);
console.log(“是否是ios14以上的设备”,isIos14Or15);

const isIOS14Device = cc.sys.os === cc.sys.OS_IOS && cc.sys.isBrowser && cc.sys.isMobile && isIos14Or15;
console.log(isIOS14Device);
if (isIOS14Device) {
cc.MeshBuffer.prototype.checkAndSwitchBuffer = function (vertexCount) {
if (this.vertexOffset + vertexCount > 65535) {
this.uploadData();
this._batcher._flush();
}
};
cc.MeshBuffer.prototype.forwardIndiceStartToOffset = function () {
this.uploadData();
this.switchBuffer();
};
}

阅读整个主题