Azlier
Old World Ghost
- Reaction score
- 461
I would think so, too.
I can't get benchmark natives to work.
I can't get benchmark natives to work.
private function Actions takes nothing returns nothing
local integer watch1
local integer watch2
local integer loop1 = 5000
local integer loop2 = 5000
local real result1 = 0
local real result2 = 0
local player p
set watch1 = StopWatchCreate()
loop
set p = GetPlayer(0)
set result1 = result1 + StopWatchMark(watch1)
exitwhen loop1 == 0
set loop1 = loop1 - 1
endloop
call StopWatchDestroy(watch1)
call TriggerSleepAction(0)
set watch2 = StopWatchCreate()
loop
set p = Player(0)
set result2 = result2 + StopWatchMark(watch2)
exitwhen loop2 == 0
set loop2 = loop2 - 1
endloop
call StopWatchDestroy(watch2)
call BJDebugMsg("GetPlayer: " + R2S(result1 * 10))
call BJDebugMsg("Player: " + R2S(result2 * 10))
endfunction
-.- lol
also weird, lagging should slow the array lookup proportionally right =/