Skip to content

Fix memory leaks causing UI freeze after extended use#7

Open
afreakk wants to merge 2 commits intowxt-and-manifest-v3from
claude/debug-extension-freeze-tdPIe
Open

Fix memory leaks causing UI freeze after extended use#7
afreakk wants to merge 2 commits intowxt-and-manifest-v3from
claude/debug-extension-freeze-tdPIe

Conversation

@afreakk
Copy link
Owner

@afreakk afreakk commented Feb 15, 2026

  • Add proper dat.gui controller disposal before removing folders to
    prevent accumulated onChange listeners from causing slowdown
  • Replace frameTimes.shift() with circular buffer (Float32Array) to
    avoid O(n) operations at 60fps
  • Reuse Uint8Array buffers for audio data instead of allocating new
    ones each frame to reduce GC pressure

- Add proper dat.gui controller disposal before removing folders to
  prevent accumulated onChange listeners from causing slowdown
- Replace frameTimes.shift() with circular buffer (Float32Array) to
  avoid O(n) operations at 60fps
- Reuse Uint8Array buffers for audio data instead of allocating new
  ones each frame to reduce GC pressure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants