Enhanced AI

Enhanced AI

9M Downloads

[Suggestion] Optimizing the creature pathfinding AI enhancement system

Closed this issue · 4 comments

commented

Hello author, the performance results of this mod's enhancement to the creature pathfinding AI are astounding, but it places too much of a computational burden on the MSPT. Could you optimize the performance of this feature? For example, by improving the algorithm of the enhanced pathfinding AI or reducing the update frequency of the pathfinding algorithm. Alternatively, you could enhance the pathfinding AI only for creatures within the player's set range and implement a blacklist for creatures excluded from this enhancement. I absolutely love this feature, but due to its high performance cost, I hesitate to enable it.

commented

I don't touch pathfinding AI so dunno what you're talking about. this is not a valid bug report (or whatever you were trying to report).
Send a spark profile

commented

Apologies, perhaps my description wasn'tt very accurate. In the Enhanced AI mod configuration, under the "mobs" targeting options, there is a "better pathfinding" feature that can be enabled. Its description states that creatures can find better routes to their targets but may cause some performance loss. After enabling this feature, the pathfinding capability improves significantly, but the performance cost outweighs the benefits. Therefore, I wanted to ask if further optimizations could be made to this feature. However, since you mentioned that you don’t handle pathfinding AI, I’m unsure whether you forgot about this development feature, if it wasn’t developed by you, or if I misunderstood the feature.

commented

That feature just changes a number in the vanilla pathfinding algorithm. It does nothing else, I don't rewrite the pathfind. As already mentioned, are you sure that's what is causing the perfomance issue?

commented

Alright, it might be that enabling this feature causes a significant performance loss when combined with other mods that modify creature AI. I haven’t conducted precise screening or comparisons, but after enabling this feature, the MSPT burden noticeably increased substantially. However, since the feature itself doesn’t have a major impact on performance, there’s no need to discuss this issue further.