Surely it couldn't produce too much lag, March of the Eagles did it even when that game had lots of tiny stacks and constant warfare.
It's my understanding that efficient use of CPU cycles is a priority for Paradox precisely because EU is already very computationally taxing on lower end computers. The AI in particular is a hog, so what might not make a big difference in a production app can be a critical difference for a game like EU.
It is not just a few. Moral Calculations is not per Stack but per Unit. Therefore you add somewhere from 3000-10000 Calculations per day. On higher Speedlevels you run multiple days per second.
Like I said earlier, just update morale proportionally to what would have been gained in daily updates - just before battle is begun. There is no need to drag on the cpu by adding it every day when you can add it at the only point it would matter.
Agreed.I think daily morale is a bit over the top.
Weekly would certainly suffice.
This is a really bad idea because you'll go in to battles not knowing what actual morale on both sides is. Especially because there are sometimes differences in morale gain because Ideas.
This discussion would never happen if shattered retreat and beaten-army-pingponging-due-to-crappy-combat-rules weren't a thing.
I once chased a Spanish stack around Africa for a year, beating it at each province, but it kept retreating and retreating. Yes, it could be because of moral ticks, but the problem is more fundamental. Anyway, an army that gets beaten three times in a month should instantly die.
I don't think EU4's poor performance is due to logic calculations like this. Victoria 2, which does a lot more of them, also performs much better.
If calculating the morale increase itself is a complex operation, sure, do it monthly, but the morale really needs to be incremented every day.
A few thousand extra floating point additions in the day update code isn't going to have the slightest impact upon performance.
did you even understand what you asked for? what good is morale increase everyday, if it wont be calculated and updated till the end of the month, it will have no effect, unless you meant something else, but then really i have no clue what are you implying at
did you even understand what you asked for? what good is morale increase everyday, if it wont be calculated and updated till the end of the month, it will have no effect, unless you meant something else, but then really i have no clue what are you implying at
and you are wrong your calculation assumption and "make up" code