quake2ts 0.0.435 → 0.0.437

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.
@@ -13214,6 +13214,17 @@ var DemoPlaybackController = class {
13214
13214
  getSpeed() {
13215
13215
  return this.playbackSpeed;
13216
13216
  }
13217
+ getPlaybackSpeed() {
13218
+ return this.playbackSpeed;
13219
+ }
13220
+ /**
13221
+ * Returns the interpolation factor (0.0 to 1.0) for the current frame.
13222
+ * Used for smooth rendering between demo frames.
13223
+ */
13224
+ getInterpolationFactor() {
13225
+ if (this.frameDuration <= 0) return 0;
13226
+ return Math.max(0, Math.min(1, this.accumulatedTime / this.frameDuration));
13227
+ }
13217
13228
  update(dt) {
13218
13229
  if (this.state !== 1 /* Playing */ || !this.reader) {
13219
13230
  return;