25.09.2011, 20:47
(
Последний раз редактировалось henry jiggy; 25.09.2011 в 23:57.
)
Quote:
Hmm, haven't even thought that way, but it seems like a good solution.
---------------------------------------------------------------------- I made some tests now. pawn Код:
[20:45:01] tick #1: 38 [20:45:01] tick #2: 33 [20:45:01] tick #3: 102 [20:45:01] tick #4: 100 [20:45:01] tick #5: 12 [20:45:01] tick #6: 2 I don't know anything about plugin programming, but could this be somehow speeded up a bit? GVars seem to be around three times slower than PVars. |
i = SOMETHING[randomshit];
is like 5 times faster than
SOMETHING[randomshit] = i;
Whoa. i gotta go inverse my scripts now
EDIT: i ran a test to comfirm this and server made cp usage reach 100% with no result(epic crash) and then running further tests i discovered it doesnt work if its like
Код:
i = SOMETHING[5];
and if i put a number there instead pawno compiler gives an error, but like this: SOMETHING[5] = z; it works even if i put a number on it. I guess something went wrong >.>
EDIT2: i figured it lol im an ass --ґ first one tried to se i to the value of SOMETING[5] and second sets SOMETHING[5] to the value of z(i just replaced i by z).