Personally, I wouldn't add them. Especially if they aren't used. They add unnecessary time, especially for non mob searches. I just did a test.lisa wrote:I might leave the object info as
Code: Select all
self.Address = ptr; self.Name = "<UNKNOWN>"; self.Id = 0; self.Type = PT_NONE; self.X = 0.0; self.Y = 0.0; self.Z = 0.0; self.TargetPtr = 0; self.HP = 1000; self.MaxHP = 1000; self.Class1 = CLASS_NONE; self.Level = 1;
With the extra info
Code: Select all
Command> local tt = getTime() for i = 1,100 do local objectList = CObjectList()
objectList:update() end print(deltaTime(getTime(),tt))
7970.7192605234Code: Select all
Command> local tt = getTime() for i = 1,100 do local objectList = CObjectList()
objectList:update() end print(deltaTime(getTime(),tt))
5680.7516513624