-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathclient.lua
More file actions
24 lines (21 loc) · 808 Bytes
/
client.lua
File metadata and controls
24 lines (21 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
local NativeClient = require("Core.NativeClient.NativeClient")
if arg[1] == "--etrace" then
local etrace = require("etrace")
-- The Renderer (and WebGPU modules) have to be loaded prior to this so their events are registered
etrace.enable()
C_Timer.NewTicker(1000, function()
-- Dumping traces once per frame isn't currently needed and a little wasteful
printf("Dumping traced events for the last rendered frame...")
dump(etrace.filter())
end)
_G.arg[1] = nil -- Don't try to load it as a scene
elseif arg[1] == "--stresstest" then
C_Timer.After(2000, function()
NativeClient:LoadScenesOneByOne(arg[2])
end)
_G.arg[1] = nil -- Don't try to load it as a scene
elseif arg[2] == "--profile" then
NativeClient.isProfilingStartupTime = true
end
local mapID = arg[1]
NativeClient:Start(mapID)