by Franck83 » 18 Feb 2019, 17:13
Hi Diamond,
There are some ways to improve performance.
On the CPU side, i think i can earn 30-40% of the CPU usage but it needs a complete code review from my side. This kind of optimization is a check a line per line (and the mod is near 20k line of code).
On the GPU side, i need to rewrite the FX on heroes. I know that bard ones, and the guardian transformation are GPU intensive.
If we want to go further, i will need to remove some of secondary mod features to make it smoother.
The matter is that some people love theses features.
For example the imperials troops feature uses quite much of the CPU ressources because AI can create heroes. If you put 8 AI on a game, it uses 8 more CPU ressources than 1.
Another example is the heroes league. All Heroes even AI ones compete in game for the best ranks. The more number of AI, the more CPU power it uses.
The Alliance of Heroes mod is designed to work in a DOTA / League of legends/starcraft2 units number scale. 250 units / 4 players would be a good start point.
But most players play against several AI with 1000+ units.
So, If we want to increase performance on the CPU side on big units scale, we need to reduce features.
For example, height is taken care in alliance of heroes. So if you fire from hills, you can fire further. This adds deepness in heroes fights.
Another example, is range. Range reduces accuracy. So you need to increase your attack rating to increase accuracy at longer ranges. This adds deepness in heroes fights too.
There are a huge amount of other game mechanics (dynamic dodge, coordinated attack rating...), i'm sure most players don't think it even exists.
What i need to do is taking a look at all features and make some compromise to keep major features and remove secondary ones. This is on my to do list.
On a practical side, at his time, you can try these tricks :
- use quality of performance mod (it reduces the fx loop and time, so it will reduce the GPU usage of FX)
- Reduce the shadow fidelity to low in graphics settings.
- play vs human players or limit the number of AI.
- Use a 250 unit scale.