06-21-2012, 11:22 AM
(06-21-2012, 10:45 AM)Lord Silva Wrote: Insignificant really. You saw your self that when you declare are variable in side a for loops scope and have it allocated/destroyed the performance issues are much worse. Since the files are being accessed constantly and small, they'll be in the hard drives cache. I doubt storing them in RAM will be in any quicker(at least not quick enough to make a noticeable difference), the performance issues come from chaiscript evaluating the script, not just reading the file.
Sounds reasonable to me.
Different issue:
Is it your intention to disable loadTarget (aka, returning -1 and not loading a new target) if target.hp <= 0 ?
I just noticed my AI is entirely incapable of reviving teammates because of this. loadTarget(0) will return -1 if the player #1 is dead.
I hope this is not an engine limitation.
My Creations: (Click to View)
Return (String) System.getNewsOfTheDay();
Barely active, expect slow responses. If at all.
Greetz,
Alblaka