summaryrefslogtreecommitdiff
path: root/indra/newview/scripts/lua/frame_profile.lua
blob: 3c6353ff68e1265fb9403e74c08ceb1065231009 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
-- Trigger Develop -> Render Tests -> Frame Profile

LLAgent = require 'LLAgent'
startup = require 'startup'
Timer = (require 'timers').Timer
UI = require 'UI'

startup.wait('STATE_STARTED')

-- teleport to http://maps.secondlife.com/secondlife/Bug%20Island/220/224/27
print(LLAgent.teleport{regionname='Bug Island', x=220, y=224, z=27})
Timer(10, 'wait')
LLAgent.setCamera{camera_pos={220, 224, 26}, camera_locked=true,
                  focus_pos ={228, 232, 26}, focus_locked=true}
Timer(1, 'wait')
-- This freezes the viewer for perceptible realtime
UI.popup:tip('starting Render Tests -> Frame Profile')
UI.call("Advanced.ClickRenderProfile")
Timer(1, 'wait')
LLAgent.removeCamParams()
LLAgent.setFollowCamActive(false)

-- Home, James!
print(LLAgent.teleport('home'))