Is the AI limited by CPU?

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Post Reply
User avatar
DeuxAlpha
Posts: 8
Joined: Thu, 6. Dec 18, 16:40
x4

Is the AI limited by CPU?

Post by DeuxAlpha » Wed, 19. May 21, 01:30

Serious question: In terms of limiting how many iterations can be run per tick...

User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13299
Joined: Sun, 15. Feb 04, 20:12
x4

Re: Is the AI limited by CPU?

Post by euclid » Wed, 19. May 21, 04:31

I'm not sure what you mean. There is no "real" AI here. Every action of the NPCs are driven by scripts and they do not contain any "iteration" as far as I know. However, you will notice an increasing lag if you code a script with huge loops without using "wait" or "delay". It may even end up freezing your game. But I guess you are after something different.

Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786

Post Reply

Return to “X4: Foundations - Scripts and Modding”