@woosh/meep-engine 2.82.0 → 2.83.0

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/build/meep.cjs CHANGED
@@ -85690,6 +85690,12 @@ class RingBuffer {
85690
85690
  * @param {number} new_size
85691
85691
  */
85692
85692
  resize(new_size) {
85693
+
85694
+ if (new_size === this.size) {
85695
+ // already the right size
85696
+ return;
85697
+ }
85698
+
85693
85699
  const array = new Array(new_size);
85694
85700
 
85695
85701
  this.data = array;