Is the AI limited by CPU?

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

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

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

Is the AI limited by CPU?

Post by DeuxAlpha »

Serious question: In terms of limiting how many iterations can be run per tick...
User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13486
Joined: Sun, 15. Feb 04, 20:12
x4

Re: Is the AI limited by CPU?

Post by euclid »

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

Return to “X4: Foundations - Scripts and Modding”