- Joined
- Feb 5, 2016
- Messages
- 559
- Reaction score
- 351
- First Language
- Portuguese(BR)
- Primarily Uses
- RMMV
I'm making a game using Yanfly's event spawner(http://www.yanfly.moe/wiki/Event_Spawner_(YEP)) in a project of mine. As one of the side game modes, I've been making a tower defense, and on it there's an event that can be built by the player which is a tower that shoots arrows. Those arrows get spawned, move 4 times on a given direction, then erased.
Issue is, over time, with more and more events being made, the performance starts to degrade, even tho most of them are erased and shouldn't be updated anymore(they create no setIntervals or anything of the sort). After trying to run some performance checks, I've found out that the tilemap(mainly its update function) seems to be taking over half of the run time of each frame draw
What could be going on? As far as I can tell, the events that get erased dont even contain a sprite anymore(I checked $gameMap to make sure), why is it that tilemap updates of all things is causing the lag issues, and how could I solve this?
Issue is, over time, with more and more events being made, the performance starts to degrade, even tho most of them are erased and shouldn't be updated anymore(they create no setIntervals or anything of the sort). After trying to run some performance checks, I've found out that the tilemap(mainly its update function) seems to be taking over half of the run time of each frame draw

What could be going on? As far as I can tell, the events that get erased dont even contain a sprite anymore(I checked $gameMap to make sure), why is it that tilemap updates of all things is causing the lag issues, and how could I solve this?