@galacean/engine-core 1.1.0-beta.33 → 1.1.0-beta.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +4 -2
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +4 -2
- package/dist/module.js +4 -2
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
package/dist/main.js
CHANGED
|
@@ -12609,8 +12609,10 @@ var Basic2DBatcher = /*#__PURE__*/ function() {
|
|
|
12609
12609
|
}
|
|
12610
12610
|
mesh.addSubMesh(this._getSubMeshFromPool(vertexStartIndex, vertexCount));
|
|
12611
12611
|
batchedQueue[curMeshIndex] = preElement;
|
|
12612
|
-
|
|
12613
|
-
|
|
12612
|
+
// Set data option use Discard, or will resulted in performance slowdown when open antialias and cross-rendering of 3D and 2D elements.
|
|
12613
|
+
// Device: iphone X(16.7.2)、iphone 15 pro max(17.1.1)、iphone XR(17.1.2) etc.
|
|
12614
|
+
this._vertexBuffers[_flushId].setData(vertices, 0, 0, vertexIndex, exports.SetDataOptions.Discard);
|
|
12615
|
+
this._indiceBuffers[_flushId].setData(indices, 0, 0, indiceIndex, exports.SetDataOptions.Discard);
|
|
12614
12616
|
};
|
|
12615
12617
|
_proto._getSubMeshFromPool = function _getSubMeshFromPool(start, count) {
|
|
12616
12618
|
var subMesh = this._subMeshPool.getFromPool();
|