diff options
author | nat-goodspeed <nat@lindenlab.com> | 2024-09-13 09:20:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-13 09:20:57 -0400 |
commit | 7ced89435d702b8a6bc02908769bed47e20d6ec0 (patch) | |
tree | bb4735ba807f4d4caf7cf6161462557cfc9864bd /indra/newview/scripts/lua/frame_profile.lua | |
parent | 3d191c09b1b1eb6726fe67f6fdf5445d83536578 (diff) | |
parent | d6f3f20af6cccf53746cbf1fdf39bc4e235c4f0d (diff) |
Merge pull request #2548 from secondlife/lua-frame-profile
Make Develop->Render Tests->Frame Profile dump JSON to a file too (#2412)
Diffstat (limited to 'indra/newview/scripts/lua/frame_profile.lua')
-rw-r--r-- | indra/newview/scripts/lua/frame_profile.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/indra/newview/scripts/lua/frame_profile.lua b/indra/newview/scripts/lua/frame_profile.lua new file mode 100644 index 0000000000..3c6353ff68 --- /dev/null +++ b/indra/newview/scripts/lua/frame_profile.lua @@ -0,0 +1,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')) |