@galacean/engine 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/browser.js CHANGED
@@ -17402,8 +17402,10 @@
17402
17402
  }
17403
17403
  mesh.addSubMesh(this._getSubMeshFromPool(vertexStartIndex, vertexCount));
17404
17404
  batchedQueue[curMeshIndex] = preElement;
17405
- this._vertexBuffers[_flushId].setData(vertices, 0, 0, vertexIndex);
17406
- this._indiceBuffers[_flushId].setData(indices, 0, 0, indiceIndex);
17405
+ // Set data option use Discard, or will resulted in performance slowdown when open antialias and cross-rendering of 3D and 2D elements.
17406
+ // Device: iphone X(16.7.2)、iphone 15 pro max(17.1.1)、iphone XR(17.1.2) etc.
17407
+ this._vertexBuffers[_flushId].setData(vertices, 0, 0, vertexIndex, exports.SetDataOptions.Discard);
17408
+ this._indiceBuffers[_flushId].setData(indices, 0, 0, indiceIndex, exports.SetDataOptions.Discard);
17407
17409
  };
17408
17410
  _proto._getSubMeshFromPool = function _getSubMeshFromPool(start, count) {
17409
17411
  var subMesh = this._subMeshPool.getFromPool();
@@ -43975,7 +43977,7 @@
43975
43977
  ], GALACEAN_animation_event);
43976
43978
 
43977
43979
  //@ts-ignore
43978
- var version = "1.1.0-beta.33";
43980
+ var version = "1.1.0-beta.34";
43979
43981
  console.log("Galacean engine version: " + version);
43980
43982
  for(var key in CoreObjects){
43981
43983
  Loader.registerClass(key, CoreObjects[key]);