BBAI speed tweaks vs. CAR mod [merging]

embryodead

Caliph
Joined
Jan 1, 2003
Messages
5,179
Location
basement
Hello,
I'm trying to merge at least parts of BBAI with RFC, which is rather challenging on its own, and it's further complicated by the fact that I previously merged the CAR mod in. Some questions that I have, to whoever is familiar with BBAI code:
- the danger value caching from CAR made its way into BBAI but it seems vastly expanded - will I get noticeable speed improvement by dropping the CAR system and switching to BBAI's system?
- CAR's caching of attitude values was discussed at some point apparently, but didn't make it in, just out of curiousity, why?
TIA,
e.
 
Deep recall, but as I remember it seemed there were circumstances where CAR's changes would cause (small) changes in AI behavior. What's in BBAI does not. I never got around to looking at version 0.3 of CAR or whatever the latest is.

If you're very interested in efficiency, one big improvement came from the Lead from Behind mod ... IIRC, it was changing some checks in a very frequently called function from checking if (# of enemy units) > 0 to a new function checking if there was any enemy unit.

That's probably the most important speed up for games with lots of units.
 
Back
Top Bottom