HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

speed

10-26-2004, 09:46 PM#1
a thing
Do you know if calling
Code:
function plyer takes integer i returns player
return Player(i - 1)
endfunction
would be slower than calling ConvertedPlayer or Player?
10-27-2004, 12:14 AM#2
AIAndy
That function is nearly an exact copy of ConvertedPlayer
10-27-2004, 12:22 AM#3
-={tWiStÄr}=-
lol.. it is an exact copy but instead of convertedPlayerId he uses I and instead of ConvertedPlayer he used player. speedwise, i think just Player(i-1) would be faster, but I really dont think it will make any sort of difference. even if you are calling it rapidly, im sure the speed difference is much under .01. You could just use your function since its shorter to write tho.