18.06.2010, 05:26
I'm making a server and I connected like 40 Npcs, 10 are drivers, the rest are peds.
Everyone of them has an AI that runs a loop.
Drivers run a simple timer of 250 milisecs.
Peds run a timer of 100 milisecs with a "for" loop inside to control data between the other players in the server (only humans).
The question is: How many npc's did you test in your server without lag?
With 40 npcs i have cpu usage peaks of 100% most of the time and the npc's really lag.