@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.
@@ -12610,8 +12610,10 @@ var Basic2DBatcher = /*#__PURE__*/ function() {
12610
12610
  }
12611
12611
  mesh.addSubMesh(this._getSubMeshFromPool(vertexStartIndex, vertexCount));
12612
12612
  batchedQueue[curMeshIndex] = preElement;
12613
- this._vertexBuffers[_flushId].setData(vertices, 0, 0, vertexIndex);
12614
- this._indiceBuffers[_flushId].setData(indices, 0, 0, indiceIndex);
12613
+ // Set data option use Discard, or will resulted in performance slowdown when open antialias and cross-rendering of 3D and 2D elements.
12614
+ // Device: iphone X(16.7.2)、iphone 15 pro max(17.1.1)、iphone XR(17.1.2) etc.
12615
+ this._vertexBuffers[_flushId].setData(vertices, 0, 0, vertexIndex, exports.SetDataOptions.Discard);
12616
+ this._indiceBuffers[_flushId].setData(indices, 0, 0, indiceIndex, exports.SetDataOptions.Discard);
12615
12617
  };
12616
12618
  _proto._getSubMeshFromPool = function _getSubMeshFromPool(start, count) {
12617
12619
  var subMesh = this._subMeshPool.getFromPool();
package/dist/module.js CHANGED
@@ -12605,8 +12605,10 @@ var Basic2DBatcher = /*#__PURE__*/ function() {
12605
12605
  }
12606
12606
  mesh.addSubMesh(this._getSubMeshFromPool(vertexStartIndex, vertexCount));
12607
12607
  batchedQueue[curMeshIndex] = preElement;
12608
- this._vertexBuffers[_flushId].setData(vertices, 0, 0, vertexIndex);
12609
- this._indiceBuffers[_flushId].setData(indices, 0, 0, indiceIndex);
12608
+ // Set data option use Discard, or will resulted in performance slowdown when open antialias and cross-rendering of 3D and 2D elements.
12609
+ // Device: iphone X(16.7.2)、iphone 15 pro max(17.1.1)、iphone XR(17.1.2) etc.
12610
+ this._vertexBuffers[_flushId].setData(vertices, 0, 0, vertexIndex, SetDataOptions.Discard);
12611
+ this._indiceBuffers[_flushId].setData(indices, 0, 0, indiceIndex, SetDataOptions.Discard);
12610
12612
  };
12611
12613
  _proto._getSubMeshFromPool = function _getSubMeshFromPool(start, count) {
12612
12614
  var subMesh = this._subMeshPool.getFromPool();