Repository navigation
Commit ae0f346
Replay clips: free each clip's memory when its panel closes (#367)
- **Fix: replay clips no longer pile up in memory.** Each finished clip (~10 MB) was kept for as long as the game page stayed open, even after its panel closed, so a long session in Slipstream, Boostball or Driftfall grew by roughly that much per match. Closing the panel (or the next clip replacing it) now stops the preview and frees the clip 10 s later.
- Files: `e63334287a3deaa3/replay.js` (a cleanup step in the panel), README.
- No What's new entry: players won't notice anything except fewer slowdowns in very long sessions (`no-news`).
- Tested: after closing the panel, the clip's data is gone; the clip itself is unchanged.
Claude-Session: https://claude.ai/code/session_016ZY4GY6KEVGmw5xYZiPbvp
Co-authored-by: Claude <noreply@anthropic.com>1 parent 13c5aa1 commit ae0f346
2 files changed
Lines changed: 5 additions & 3 deletions
0 commit comments