Relative Content

Tag Archive for javascriptaudiomemory-leaksp5.js

Extensive sound playing causing memory leaks in P5.js

I’ve recently made a topdown shooter in P5.js (still new). However, this function seems to cause a memory leak, making all audio sound glitchy and slightly decreasing the FPS. The sounds play normally if I pause the “draw()” loop.

Extensive sound playing causing memory leaks in P5JS

I’ve recently made a topdown shooter in P5JS (still new). However, this function seems to cause a memory leak, making all audio sound glitchy and slightly decreasing the FPS. The sounds play normally if I pause the “draw()” loop.