GetIsID is much slower than IsInList

Post » Fri Mar 01, 2013 2:40 pm

I used GetIsID as decision making factor in a bunch of if elseif to pinpoint certain Forms, used in OnEquip and OnUnEquip blocktypes in a few armors (Object script, directly attached to the armors).

Using GetIsID, the result when quickly swapping between armors are reliably not reliable. The further down the tree (even starting at the first branch), the more apparent GetIsID's slowness.

Using a bunch of FormLists, each containing only one record instead of GetIsID gives good and reliable result.

Is there any real drawback in creating lots of FormLists?
User avatar
Quick Draw
 
Posts: 3423
Joined: Sun Sep 30, 2007 4:56 am

Return to Fallout: New Vegas