Recreating Cameras - Memory Cost

I’m having a tricky time resetting the arccamera and freecamera, so I decided to just dispose them and recreate them. I’m doing this when a user loads a new file, so it is not in the midst of a lot of action.

I’m wondering if this will cause some kind of memory leak, by disposing and recreating the cameras many times (for example 20) over a 20 minute session.

If you are calling the dispose() function of the camera that should cleanup everything and not cause any problems.

Since the camera inherits from Node it behaves the same as a cube or a sphere when it comes to being removed.

You can se the source code here if you would like to know what happens :smile:

Great Thanks!