Currently working on a project involving multi-camera streaming, I've noticed a continuous increase in memory usage after switching between cameras. I've managed to clean up on the hls.js side of things, but I haven't come across any methods to do the same in a-frame. I'm currently using version 1.2.0.
After searching, I found some older posts suggesting to use
document.querySelector('a-scene').systems.material.textureCache
and execute .dispose()
It seems like this method worked on version 0.3.0, but not in the latest versions. Is there a new way to clean up textures or does this now happen automatically?