In my 2d game there is a map with many Nodes (let's say they could be 150/200 or more for very large maps),and the camera can move dynamically anywhere in the map at any time (it can jump in any area at any frame).
What i need to do is to draw only nodes that are inside the screen area(camera) and disable all that are off-screen,but i need to keep them in memory(just disable their draw and their execution or godot processing them).
How can i do it?
I've read many approach and methods but i am still not sure wich one to use.
My idea is to just remove() them from the scenetree and attach the newones before the frame is rendered,but how can i do it? Wich is the best approach?
I will be very thankful if someone can show me a correct approach to use and i will test it.
Thank you in advance.