Hello.
I was about to implement a foraging system following the method Yanfly shows on Youtube. As I was understanding the common events he was implementing I started wondering the impact it would have on performance.
Understandably, if there's only a few maps to check it wouldn't be too taxing but this is a system I wanted to implement globally to the extent of around 300+ maps. Meaning that at night, when the common event would execute the respawning check... it would have to do so for 300+ maps in parallel to what is going on actively for the player. My question is if my concerns are valid that at night or sleeping in the event that the common event would execute, I would facing a spike in performance.
My concern stems from putting in the effort to implement this system now, while I only have a handful of maps, but when I start reaching larger amounts of maps the game will start facing performance issues every time day/night cycles.
I was about to implement a foraging system following the method Yanfly shows on Youtube. As I was understanding the common events he was implementing I started wondering the impact it would have on performance.
Understandably, if there's only a few maps to check it wouldn't be too taxing but this is a system I wanted to implement globally to the extent of around 300+ maps. Meaning that at night, when the common event would execute the respawning check... it would have to do so for 300+ maps in parallel to what is going on actively for the player. My question is if my concerns are valid that at night or sleeping in the event that the common event would execute, I would facing a spike in performance.
My concern stems from putting in the effort to implement this system now, while I only have a handful of maps, but when I start reaching larger amounts of maps the game will start facing performance issues every time day/night cycles.