How to remove material and texture without delay?

Hello everyone!

I know the function ‘.dispose()’ can remove materials, textures and meshes.

But I find that the broswer clean up the RAM at about 1 minute after the function ‘.dispose()’ is down.

So My question is how to delete them without 1 minute delay?

Thanks!

You can’t. The browser is free to release the memory whenever it wants. It shouldn’t normally be a problem, the browser will reclaim some memory if it needs to.

Thank you!

I don’t know what the scenario is for this, but if you are trying to figure out the memory usage and you don’t want to wait, you can try something like this: firefox - Is there any way to force the Javascript Garbage Collector in webkit based browsers? - Stack Overflow

thanks!