summaryrefslogtreecommitdiff
path: root/indra/newview
AgeCommit message (Collapse)Author
2024-09-20Add ability to pass command-line arguments to a Lua script.Nat Goodspeed
Introduce `ScriptCommand` class that parses a command line into a script name and optional args, using bash-like quoting and escaping. `ScriptCommand` searches for a file with that script name on a passed list of directories; the directories may be specified relative to a particular base directory. `ScriptCommand` supports the special case of a script name containing unescaped spaces. It guarantees that either the returned script file exists, or its `error()` string is non-empty. Replace `LLLeap::create()` logic, from which `ScriptCommand` was partly derived, with a `ScriptCommand` instance. Make `LLLUAmanager::runScriptFile()` use a `ScriptCommand` instance to parse the passed command line. Subsume `LLAppViewer::init()` script-path-searching logic for `--luafile` into `ScriptCommand`. In fact that lambda now simply calls `LLLUAmanager::runScriptFile()`. Make `lluau::dostring()` accept an optional vector of script argument strings. Following PUC-Rio Lua convention, pass these arguments into a Lua script as the predefined global `arg`, and also as the script's `...` argument. `LuaState::expr()` also accepts and passes through script argument strings. Change the log tag for the Lua script interruption message: if we want it, we can still enable it, but we don't necessarily want it along with all other "Lua" DEBUG messages. Remove `LuaState::script_finished_fn`, which isn't used any more. Also remove the corresponding `LLLUAmanager::script_finished_fn`. This allows us to simplify `~LuaState()` slightly, as well as the parameter signatures for `LLLUAmanager::runScriptFile()` and `runScriptLine()`.
2024-09-20Merge pull request #2623 from secondlife/v-2462cosmic-linden
secondlife/viewer#2462: Optimize unloading of prims
2024-09-20Restore option to change location of existing pick (#2622)Ansariel Hiller
2024-09-20Fix sky settings with reflection probe ambiance of 0 still receiving tonemappingRye Cogtail
2024-09-20#1519 ObjectGrab message includes invalid SurfaceInfo data when in mouselook ↵Alexander Gavriliuk
mode
2024-09-20viewer#2576 Crash baning a residentAndrey Kleshchev
2024-09-19secondlife/viewer#2623: Remove assertCosmic Linden
2024-09-19secondlife/viewer#2462: Optimize unloading of primsCosmic Linden
2024-09-19Incremented viewer version after release/2024.09-ExtraFPS branch creationBrad Linden
2024-09-19Make login.lua enhance plain grid='agni' to required form.Nat Goodspeed
2024-09-19Merge pull request #2610 from secondlife/frame-profile-jsonnat-goodspeed
Make Develop->Render Tests->Frame Profile dump JSON to a file too.
2024-09-19viewer#2608 Crash at LLSnapshotLivePreview::getFormattedImageAndrey Kleshchev
2024-09-19Don't keep updating snapshot preview when the floater is closedMaxim Nikolenko
2024-09-19Merge branch 'main' into marchcat/b-main-syncAndrey Lihatskiy
# Conflicts: # indra/newview/llviewertexturelist.cpp
2024-09-19Merge branch 'develop' into frame-profile-jsonNat Goodspeed
2024-09-19Reapply commit f4b6563 -- cherry-picking lost parts of it?!Nat Goodspeed
2024-09-19Expose LLVector4a in LLRenderAndrey Kleshchev
Avoid using a bunch of allocators. Make sure we use LLVector4a's SSE logic instead of LLVector3's. Some minor optimizations.
2024-09-18Merge pull request #2602 from secondlife/roxie/webrtc-2601Roxanne Skelly
2024-09-19Fix possible dereferencing of nullptr in llglsandbox.cpp (#2597)Ansariel Hiller
2024-09-19Fix copy&paste error in llfloaterimagepreview.cpp (#2596)Ansariel Hiller
2024-09-18Fix crash in LLImProcessing when message comes in before region is fully ↵Brad Linden
init (#2604) secondlife/viewer#2603
2024-09-18fix trailing whitespaceRoxie Linden
2024-09-18Merge pull request #2600 from secondlife/brad/1016-cherry-pickBrad Linden
cherry-pick viewer#1016 Incorrect behavior of Physics Shapes rendering
2024-09-18Fix for particles not loading textures (#2598)Dave Parks
Also fix assert while prepping GLTF assets
2024-09-18Mute other / set volume level for other is not working.Roxie Linden
As part of the boost::json conversion, the json that mutes and sets peer gain was not being formed correctly. Also, tweaked the peer gain default.
2024-09-18fix whitespaceBrad Linden
2024-09-18viewer#1016 Incorrect behavior of Physics Shapes renderingAndrey Kleshchev
2024-09-18Add LLFloaterAbout info (esp. GPU info) to Frame Profile stats dumpNat Goodspeed
With the About info added, `getProfileStatsContext()` need not redundantly add `"channel"`, `"version"` or `"region"`. Slightly improve the efficiency of `LlsdToJson()` and `LlsdFromJson()` by preallocating the known size of the source array or map. (Unfortunately the C++ `LLSD` class offers us no way to preallocate a map.) In `LLAppViewer::getViewerInfo()`, avoid immediate successive calls to `gAgent.getRegion()`. (cherry picked from commit f4b65638879c10c832b3bb8448f82001106ffd11)
2024-09-18Make Develop->Render Tests->Frame Profile dump JSON to a file too.Nat Goodspeed
Make `LLGLSLShader::finishProfile()` accept a string pathname instead of a bool and, in addition to logging statistics to the viewer log, output statistics to that file as JSON. The calls that used to pass `emit_report=false` now pass `report_name=std::string()`. Make llviewerdisplay.cpp's `display()` function synthesize a profile filename in the viewer's logs directory, and pass that filename to `LLGLSLShader::finishProfile()`. (cherry picked from commit d5712689d36a1ee1af32242706901fde7229b08d)
2024-09-18#2408 The long covenant with emojis significantly slows down some operations ↵Alexander Gavriliuk
in the viewer
2024-09-18Remove quads rendering mode entirely (#2593)Ansariel Hiller
2024-09-18Tiny argument names correction (tittle -> title) (#2594)Pantera Północy
2024-09-18viewer#2565 Optimize LLFolderViewItem::draw()Andrey Kleshchev
2024-09-17#2590 Fix for horrible FPS on Intel Mac (#2591)Dave Parks
* Work around for GHA mac runners not playing nice with Tracy * Delay VBO deletion for a few frames * Enable multithreaded GL driver and multithreaded media textures on Apple silicon
2024-09-17Increment viewer version to 7.1.11Nat Goodspeed
following promotion of secondlife/viewer #2367: 2024.08 DeltaFPS
2024-09-17Mac pass (#2587)Dave Parks
2024-09-17Suppress mapBuffer warnings. (#2584)Dave Parks
2024-09-17Fix Visual Studio complaints in LLTrans (#2575)Ansariel Hiller
2024-09-16Profile guided optimization pass (#2582)Dave Parks
- Tune up LLJointRiggingInfoTab - Visualize joint bounding boxes when visualizing joints - Use LLJointRiggingInfo to caclulate desired resolution of a texture - Throttle calls to calcPixelArea - Fetch MeshSkinInfo immediately when header is received
2024-09-16Merge pull request #2580 from RyeMutt/2kbomRye Mutt
Raise resolution of local baked texture preview from 512 to 2048
2024-09-16Fix noise post effect due to missing uniform (#2581)Rye Mutt
2024-09-16Add LLFloaterAbout info (esp. GPU info) to Frame Profile stats dumpNat Goodspeed
With the About info added, `getProfileStatsContext()` need not redundantly add `"channel"`, `"version"` or `"region"`. Slightly improve the efficiency of `LlsdToJson()` and `LlsdFromJson()` by preallocating the known size of the source array or map. (Unfortunately the C++ `LLSD` class offers us no way to preallocate a map.) In `LLAppViewer::getViewerInfo()`, avoid immediate successive calls to `gAgent.getRegion()`.
2024-09-16Raise resolution of local baked texture preview from 512 to 2048Rye Cogtail
2024-09-16WIP: edits in support of Lua script argsNat Goodspeed
2024-09-16Merge branch 'release/luau-scripting' into lua-profile-cmpNat Goodspeed
2024-09-13Remove autorun 'menus.lua' since menu_viewer.xml handles visibilityNat Goodspeed
2024-09-13Merge branch 'release/luau-scripting' into lua-profile-cmpNat Goodspeed
2024-09-13Add context info to Develop->Render Tests->Frame Profile stats file.Nat Goodspeed
Specifically, add the viewer version, the machine ID, the grid, the region name and ID, the parcel name and ID and the timestamp. This is both richer and less fragile than trying to extract that information from the generated filename: e.g. we now have region and parcel names. Instead of making `LLGLSLShader::finishProfile()` mess with file I/O, pass it a reference to a `boost::json::value` to be filled in with statistics, if it's a `boost::json::object`. Otherwise it's `boost::json::null`, meaning no report. Make llviewerdisplay.cpp's `display()` function instantiate a `boost::json::value` to pass to `finishProfile()`. That lets llviewerdisplay.cpp also set the `"context"` entry, with a new `getProfileStatsContext()` function quite similar to `getProfileStatsFilename()`.
2024-09-13Restore LUA debug consoles in viewer menu and tie visibility to feature flagAnsariel
2024-09-13send AgentUpdate ASAP when control bits changeleviathan