@galacean/engine 1.3.20 → 1.3.21

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
@@ -34974,6 +34974,10 @@
34974
34974
  if (!this._supportInstancedArrays) {
34975
34975
  return;
34976
34976
  }
34977
+ // Don't need to render when no particles
34978
+ if (!this.generator._getAliveParticleCount()) {
34979
+ return;
34980
+ }
34977
34981
  Renderer1.prototype._prepareRender.call(this, context);
34978
34982
  };
34979
34983
  /**
@@ -37318,7 +37322,8 @@
37318
37322
  */ _proto._emit = function _emit(time, count) {
37319
37323
  if (this.emission.enabled) {
37320
37324
  // Wait the existing particles to be retired
37321
- if (this.main._maxParticleBuffer < this._currentParticleCount) {
37325
+ var notRetireParticleCount = this._getNotRetiredParticleCount();
37326
+ if (notRetireParticleCount >= this.main.maxParticles) {
37322
37327
  return;
37323
37328
  }
37324
37329
  var position = ParticleGenerator._tempVector30;
@@ -48423,7 +48428,7 @@
48423
48428
  ], EXT_texture_webp);
48424
48429
 
48425
48430
  //@ts-ignore
48426
- var version = "1.3.20";
48431
+ var version = "1.3.21";
48427
48432
  console.log("Galacean engine version: " + version);
48428
48433
  for(var key in CoreObjects){
48429
48434
  Loader.registerClass(key, CoreObjects[key]);