Godot Version
4.4.1
Question
I managed to create a small WaveSpawner completely out of resources so it would be easier to add more waves and control the enemies in the waves through the editor. I just want to ask if every level will have around 50-100 levels won't the resources be too much at one point? Would that create issues in the long term?
Like memory consumption wise? A 4K texture contains way more data (around 60 megabytes) than 100 instances of enemy data, at an unrealistic footprint of 1kb per enemy you are still looking at 6,000x times less data comparing the worst case scenario Resource cost to a single high quality texture.
If you are worried about the performance of using many Resources or traversing Resources then ensure you aren’t spawning or looking up data every frame, which I doubt is the case from a wave spawner. Use the profiler to deduce if there is a significant impact, I highly doubt there will be a issue from looking up Resource data.
1 Like
Thank you, I was also just reading more of the docs so I am going forwards with this. I was afraid if the load would be too much but those are a part of the engine so it would not be that significant. Also I had a bad understanding since I thought that I would have to create a resource for every single instance of a wave but I could just create new ones inside the editor without having to save those and they would save themselves to the scene.