VE Lua Documentation

Press F to search!

HighPerfTimer

Definition


-- @/lua/vehicle/ve_utils.lua:14

function HighPerfTimer()
  return setmetatable({os.clockhp()}, _HighPerfTimer)
end

Callers

@/lua/vehicle/extensions/performanceLogger.lua
    measurements[name] = 0
    stopwatches[name] = HighPerfTimer()
  else
@/lua/console/test_dyncol.lua
    do
        --hp = HighPerfTimer()
        BeamEngine:update(1/2000, 1/2000)
@/lua/common/utils/interactiveShell.lua
        elseif cmd == "tracktime" then
            execTimer = HighPerfTimer()
            goto continue
@/lua/vehicle/jbeam/stage2.lua
  --if not vehicle then return end
  local t = HighPerfTimer()
@/lua/console/benchphysics.lua
    frames = 1000
    hp = HighPerfTimer()
    updateLoop(frames)
@/lua/vehicle/beamstate.lua
  log("W", "", "getVehicleState delay")
  local timer, fakeDelay = HighPerfTimer(), 1
  while fakeDelay > 0 do
@/lua/vehicle/protocols.lua
  protocol.dtSim = 0
  protocol.updateTimer = HighPerfTimer()
  protocol.updateTimer:reset()
@/lua/console/bananabench-async.lua
function myBenchStep(testVehicle, n)
    local hp = HighPerfTimer()
    -- spawn n vehicles
    local dt = (physicsSteps + 0.1)/ physicsFPS
    hp = HighPerfTimer()
    for i=1,gfxSteps
@/lua/console/unittests.lua
    -- speed test
    hp = HighPerfTimer()
    for i=0,100000,1
@/lua/vehicle/controller/vehicleController/shiftLogic/manualGearbox.lua
local previousGearIndex = 0
local shiftIntoGearTimer = HighPerfTimer()
local shiftAggression = 1
@/lua/console/bananabench.lua
  steps = steps or gfxSteps
  local hp = HighPerfTimer()
  local hpSR = hp.stopAndReset
@/lua/console/json-performance.lua

local hp = HighPerfTimer()
@/lua/console/simtest.lua
    do
        hp = HighPerfTimer()
        BeamEngine:update(1/2000, 1/2000)
@/lua/vehicle/extensions/escMeasurement.lua

      -- local timer = HighPerfTimer()
      -- local dt = 0