Im working on a strategy game in a similar style to crusader kings.
Yes it works thanks to common events.
But now whenever the day is updated or a battle takes place there is a minor drop in fps.
I've made sure to avoid parallel processes. In fact out of all my common events only the battle system has a parallel process that is turned on at the start of a battle and turns off once the calulations are complete.
The other events are run only when needed and handle things like income, how the ai spends its money and the ai strategic planning.
would having all these things done inside a plugin rather than common events improve performance?
Edit: I've also staggered the updates so that they don't happen all at once.
Yes it works thanks to common events.
But now whenever the day is updated or a battle takes place there is a minor drop in fps.
I've made sure to avoid parallel processes. In fact out of all my common events only the battle system has a parallel process that is turned on at the start of a battle and turns off once the calulations are complete.
The other events are run only when needed and handle things like income, how the ai spends its money and the ai strategic planning.
would having all these things done inside a plugin rather than common events improve performance?
Edit: I've also staggered the updates so that they don't happen all at once.





