How to verify GPU memory is properly released?

I want to release all memory and GPU memory as needed in certain cases. I have tried removing all references in JavaScript, and the heap memory decreases. I have also tried calling dispose on textures/materials/renderers whenever possible. However, the GPU memory does not decrease over time. Only when I click “force GC” in the Chrome memory profiler and minimize the browser window does the memory go down. Can I consider this as proper handling of GPU memory release in my program?

1 Like