excalibur 0.32.0-alpha.1589 → 0.32.0-alpha.1590

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.
@@ -1,4 +1,4 @@
1
- /*! excalibur - 0.32.0-alpha.1589+bc6ab76 - 2025-12-2
1
+ /*! excalibur - 0.32.0-alpha.1590+1be15c8 - 2025-12-3
2
2
  https://github.com/excaliburjs/Excalibur
3
3
  Copyright (c) 2025 Excalibur.js <https://github.com/excaliburjs/Excalibur/graphs/contributors>
4
4
  Licensed BSD-2-Clause
@@ -12720,10 +12720,12 @@ const _GraphicsDiagnostics = class _GraphicsDiagnostics2 {
12720
12720
  static clear() {
12721
12721
  _GraphicsDiagnostics2.DrawCallCount = 0;
12722
12722
  _GraphicsDiagnostics2.DrawnImagesCount = 0;
12723
+ _GraphicsDiagnostics2.RendererSwaps = 0;
12723
12724
  }
12724
12725
  };
12725
12726
  _GraphicsDiagnostics.DrawCallCount = 0;
12726
12727
  _GraphicsDiagnostics.DrawnImagesCount = 0;
12728
+ _GraphicsDiagnostics.RendererSwaps = 0;
12727
12729
  let GraphicsDiagnostics = _GraphicsDiagnostics;
12728
12730
  const pixelSnapEpsilon$1 = 1e-4;
12729
12731
  class ExcaliburGraphicsContext2DCanvasDebug {
@@ -16919,6 +16921,7 @@ If you want to do custom drawing, use Actor.graphics, or any onPreDraw or onPost
16919
16921
  currentRenderer.flush();
16920
16922
  currentRendererName = this._drawCalls[i].renderer;
16921
16923
  currentRenderer = this.get(currentRendererName);
16924
+ GraphicsDiagnostics.RendererSwaps++;
16922
16925
  }
16923
16926
  if (currentRenderer instanceof MaterialRenderer && ((_a = this.material) == null ? void 0 : _a.isUsingScreenTexture)) {
16924
16927
  currentTarget.copyToTexture(this.materialScreenTexture);
@@ -29292,7 +29295,8 @@ class FrameStats {
29292
29295
  this._physicsStats = new PhysicsStats();
29293
29296
  this._graphicsStats = {
29294
29297
  drawCalls: 0,
29295
- drawnImages: 0
29298
+ drawnImages: 0,
29299
+ rendererSwaps: 0
29296
29300
  };
29297
29301
  }
29298
29302
  /**
@@ -29312,12 +29316,13 @@ class FrameStats {
29312
29316
  this._physicsStats.reset(otherStats.physics);
29313
29317
  this.graphics.drawCalls = otherStats.graphics.drawCalls;
29314
29318
  this.graphics.drawnImages = otherStats.graphics.drawnImages;
29319
+ this.graphics.rendererSwaps = otherStats.graphics.rendererSwaps;
29315
29320
  } else {
29316
29321
  this.id = this.elapsedMs = this.fps = 0;
29317
29322
  this.actors.alive = this.actors.killed = this.actors.ui = 0;
29318
29323
  this.duration.update = this.duration.draw = 0;
29319
29324
  this._physicsStats.reset();
29320
- this.graphics.drawnImages = this.graphics.drawCalls = 0;
29325
+ this.graphics.drawnImages = this.graphics.drawCalls = this.graphics.rendererSwaps = 0;
29321
29326
  }
29322
29327
  }
29323
29328
  /**
@@ -31327,6 +31332,7 @@ Read more about this issue at https://excaliburjs.com/docs/performance`
31327
31332
  this.stats.currFrame.duration.draw = afterDraw - afterUpdate;
31328
31333
  this.stats.currFrame.graphics.drawnImages = GraphicsDiagnostics.DrawnImagesCount;
31329
31334
  this.stats.currFrame.graphics.drawCalls = GraphicsDiagnostics.DrawCallCount;
31335
+ this.stats.currFrame.graphics.rendererSwaps = GraphicsDiagnostics.RendererSwaps;
31330
31336
  this.emit("postframe", new PostFrameEvent(this, this.stats.currFrame));
31331
31337
  this.stats.prevFrame.reset(this.stats.currFrame);
31332
31338
  this._monitorPerformanceThresholdAndTriggerFallback();
@@ -33462,7 +33468,7 @@ class Semaphore {
33462
33468
  this._count += count;
33463
33469
  }
33464
33470
  }
33465
- const EX_VERSION = "0.32.0-alpha.1589+bc6ab76";
33471
+ const EX_VERSION = "0.32.0-alpha.1590+1be15c8";
33466
33472
  polyfill();
33467
33473
  export {
33468
33474
  ActionCompleteEvent,
@@ -1,4 +1,4 @@
1
- /*! excalibur - 0.32.0-alpha.1589+bc6ab76 - 2025-12-2
1
+ /*! excalibur - 0.32.0-alpha.1590+1be15c8 - 2025-12-3
2
2
  https://github.com/excaliburjs/Excalibur
3
3
  Copyright (c) 2025 Excalibur.js <https://github.com/excaliburjs/Excalibur/graphs/contributors>
4
4
  Licensed BSD-2-Clause
@@ -12720,10 +12720,12 @@ const _GraphicsDiagnostics = class _GraphicsDiagnostics2 {
12720
12720
  static clear() {
12721
12721
  _GraphicsDiagnostics2.DrawCallCount = 0;
12722
12722
  _GraphicsDiagnostics2.DrawnImagesCount = 0;
12723
+ _GraphicsDiagnostics2.RendererSwaps = 0;
12723
12724
  }
12724
12725
  };
12725
12726
  _GraphicsDiagnostics.DrawCallCount = 0;
12726
12727
  _GraphicsDiagnostics.DrawnImagesCount = 0;
12728
+ _GraphicsDiagnostics.RendererSwaps = 0;
12727
12729
  let GraphicsDiagnostics = _GraphicsDiagnostics;
12728
12730
  const pixelSnapEpsilon$1 = 1e-4;
12729
12731
  class ExcaliburGraphicsContext2DCanvasDebug {
@@ -16919,6 +16921,7 @@ If you want to do custom drawing, use Actor.graphics, or any onPreDraw or onPost
16919
16921
  currentRenderer.flush();
16920
16922
  currentRendererName = this._drawCalls[i].renderer;
16921
16923
  currentRenderer = this.get(currentRendererName);
16924
+ GraphicsDiagnostics.RendererSwaps++;
16922
16925
  }
16923
16926
  if (currentRenderer instanceof MaterialRenderer && ((_a = this.material) == null ? void 0 : _a.isUsingScreenTexture)) {
16924
16927
  currentTarget.copyToTexture(this.materialScreenTexture);
@@ -29292,7 +29295,8 @@ class FrameStats {
29292
29295
  this._physicsStats = new PhysicsStats();
29293
29296
  this._graphicsStats = {
29294
29297
  drawCalls: 0,
29295
- drawnImages: 0
29298
+ drawnImages: 0,
29299
+ rendererSwaps: 0
29296
29300
  };
29297
29301
  }
29298
29302
  /**
@@ -29312,12 +29316,13 @@ class FrameStats {
29312
29316
  this._physicsStats.reset(otherStats.physics);
29313
29317
  this.graphics.drawCalls = otherStats.graphics.drawCalls;
29314
29318
  this.graphics.drawnImages = otherStats.graphics.drawnImages;
29319
+ this.graphics.rendererSwaps = otherStats.graphics.rendererSwaps;
29315
29320
  } else {
29316
29321
  this.id = this.elapsedMs = this.fps = 0;
29317
29322
  this.actors.alive = this.actors.killed = this.actors.ui = 0;
29318
29323
  this.duration.update = this.duration.draw = 0;
29319
29324
  this._physicsStats.reset();
29320
- this.graphics.drawnImages = this.graphics.drawCalls = 0;
29325
+ this.graphics.drawnImages = this.graphics.drawCalls = this.graphics.rendererSwaps = 0;
29321
29326
  }
29322
29327
  }
29323
29328
  /**
@@ -31327,6 +31332,7 @@ Read more about this issue at https://excaliburjs.com/docs/performance`
31327
31332
  this.stats.currFrame.duration.draw = afterDraw - afterUpdate;
31328
31333
  this.stats.currFrame.graphics.drawnImages = GraphicsDiagnostics.DrawnImagesCount;
31329
31334
  this.stats.currFrame.graphics.drawCalls = GraphicsDiagnostics.DrawCallCount;
31335
+ this.stats.currFrame.graphics.rendererSwaps = GraphicsDiagnostics.RendererSwaps;
31330
31336
  this.emit("postframe", new PostFrameEvent(this, this.stats.currFrame));
31331
31337
  this.stats.prevFrame.reset(this.stats.currFrame);
31332
31338
  this._monitorPerformanceThresholdAndTriggerFallback();
@@ -33462,7 +33468,7 @@ class Semaphore {
33462
33468
  this._count += count;
33463
33469
  }
33464
33470
  }
33465
- const EX_VERSION = "0.32.0-alpha.1589+bc6ab76";
33471
+ const EX_VERSION = "0.32.0-alpha.1590+1be15c8";
33466
33472
  polyfill();
33467
33473
  export {
33468
33474
  ActionCompleteEvent,