processing / processing/p5.js

Add p5.storageBuffer method for deleting/destroying/unallocating

Open
#9,078 4 comments 0 reactions 1 assignee View on GitHub

@samjwebster is already working on this.

Since Aug 15, 2026.

Enhancement
Dominant language
JavaScript
Stars
24k
Forks
3.8k
Avg merge
3d 16h
Merged PRs (30d)
25

Description

Increasing access

Would make this functionality available to those with lower techical ability or understanding

Most appropriate sub-area of p5.js?
  • Accessibility
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • Build process
  • Unit testing
  • Internationalization
  • Friendly errors
  • Other (specify if possible)
Feature enhancement details

Sub-area: p5.storageBuffer, WebGPU, p5.strands

Currently, p5.storageBuffer supports .read(), .set(), and .update() methods, but no method for deleting or destroying the buffer. It would be useful to add a .delete() method or deleteStorage(buffer).

This is seemingly currently achievable with p5.storageBuffer.buffer.destroy(), as pointed out by @davepagurek , though I didn't test it deeply

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.