So this is a pretty general question, not sure what to mention specifically. Guess I'm just looking for any advice or tips you guys might have.
Frame rate has been a consistent issue for us and I can't figure out what I've been doing wrong. We had to cancel our last project as the frame rate got worse and worse the more we added. We started a new game last month on a much smaller scale and have now started running in to issues with it as well. It dips down to 40-ish frames at times. We aren't even getting close to done on these before it happens. This game is maybe 5% complete at this point and I know the frame rate is gonna get worse the further we move forward. They aren't particularly ambitious games either. I'm not sure if I'm doing something wrong or if CTF just isn't meant for the kind of games we're trying to do with it.
I've found several posts of how to optimize and I'm following pretty much everything that's advised. We are using a lot of For Each loops and variables, but I see no way around this with the kind of game we're making.
-The game currently has 924 events.
-Usually around 300-400 active objects spawned at once. (Most of these are simple things with only a couple events tied to them.)
-Many of the game's events are de-activated when not in use, re-activated when they become relevant. (I'm sure I could do this more thoroughly, but again, the project isn't even close to done and some things have to be running at all times.)
-Frame rate struggles the most when there are multiple enemy types spawned. Like if we have 4 of Enemy A and 2 of Enemy B. If there is only one enemy type spawned, we can have dozens of them on screen without as severe a dip. (The frame rate struggles in general, it's just most extreme in this case.)
-Our enemies each have a Platform Movement Object using For Each. Could this be the problem? I don't feel it is, as the biggest issues come with multiple enemy types, not multiple of one type. If this does have something to do with it, is there any other way of getting platform physics on enemies that work as well as PMO?
Not sure what else to mention. Let me know what details could be useful. Any help at all would be massively appreciated!