f3cuk / WICKED-AI

Wicked AI missions for your server
30 stars 59 forks source link

[Enhancement] Performance #94

Closed f3cuk closed 9 years ago

f3cuk commented 10 years ago

What about we suspend spawning in any objects / AI until a player gets withing X meters of the mission. This should prevent the server spending unnecessary resources.

SJossy commented 10 years ago

Good idea

SJossy commented 10 years ago

I'm leaning towards not actually liking this idea though, if we only allow the AI to spawn when a player gets to within say, 1000 meters, they will easily be able to drive up to the mission and all the AI will still be in a group and not spread out across their waypoints

f3cuk commented 10 years ago

While this is countered by the fact that spawn groups are being placed randomly within a radius of the starting position, i do agree this might be a problem. We should try and test first to get some results. Even with a higher radius like 2000m i still think this can be useful for some servers.

f3cuk commented 10 years ago

Done a testbranch update for possible better performance.

Havoc302 commented 9 years ago

I have resolved this issue a lot too by changing missions to have more heli spawns, reducing the local AI that spawns in with the mission to only a few patrols of a few guys and setting the activation range of the heli spawn at 500m (the same radius I've made the marker and where mission won't time out). So players mostly know when they enter that radius 1. The mission won't time out & 2. Reinforcements are coming in from a couple of K's away. Also means if players ignore a mission it has little impact on the server.