[Include] xskins.inc - Skins Info + Skin Check Optimizations
#8

Sorry!My code is slower than the native

[20:22:42] TestXSKins:25992661
[20:22:42] TestXSkinsEnd:25992683
[20:22:42] TestNativeStart:25992684
[20:22:42] TestNativeEnd:25992715

http://pastebin.com/9WuFgxim - test code

Shows xskins is faster!

I think its dependent on the skin id or something.If it was a skin that comes early then it would get done at the beginning of the switch case.

EDIT:with a skinid in the middle
[20:25:47] TestXSKins:26177620
[20:25:47] TestXSkinsEnd:26177642
[20:25:47] TestNativeStart:26177642
[20:25:47] TestNativeEnd:26177669
still xskins is faster

xskin faster even at the top - wth
[20:27:27] TestXSKins:26277030
[20:27:27] TestXSkinsEnd:26277052
[20:27:27] TestNativeStart:26277053
[20:27:27] TestNativeEnd:26277081

unexpected-leme check my code
I gave a value which is at the end of ur check.And this is the result.The code is dependent on skinid.
[20:31:15] With xskins.inc took 9 ms
[20:31:15] Without xskins.inc took 12 ms

[20:34:28] With xskins.inc took 13 ms
[20:34:28] Without xskins.inc took 12 ms
the native is fast if I put an id in the middle with your code.

Super Confusion!
I put GetSkinTeam and GetPlayerSkin inside the loop.
Ooops, my code has to get an entry from the array and perform and & operation to get it done!
[20:39:43] TestXSKins:27012889
[20:39:43] TestXSkinsEnd:27012934
[20:39:43] TestNativeStart:27012934
[20:39:43] TestNativeEnd:27012975
Skin ID at the start.Mine got slower.

[20:41:58] TestXSKins:27147975
[20:41:58] TestXSkinsEnd:27148022
[20:41:58] TestNativeStart:27148022
[20:41:58] TestNativeEnd:27148067
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)