Commit Graph

51823 Commits (3927caafa9cd65bcd0e9877e70db6448ccca8322)

Author SHA1 Message Date
Andrey Kleshchev 3927caafa9 #2411 Disable LLFontVertexBuffer for HUD
It needs a rework
2024-09-26 22:02:24 +03:00
Andrey Kleshchev 440c7b20da #2411 Allow disabling and enabling LLFontVertexBuffer
for testing purposes
2024-09-26 20:56:45 +03:00
Andrey Kleshchev 49a2c136f9 viewer#2646 Fix viewer ignoring Physics Shape Type changes
asStringRef is only valid for strings
2024-09-25 22:46:10 +03:00
Andrey Kleshchev 37f539bdbb viewer#2413 Partially remove obsolete alert about expiring voice morphs
VoiceEffectsWillExpire can be triggered externally. Don't remove the
notification, only viewer's code that triggers it so that external
notification keeps working.
2024-09-25 18:31:06 +03:00
Andrey Kleshchev d73395a0aa viewer#2413 Add 'ignore' checkbox to expiring voice morphs 2024-09-25 09:38:54 +03:00
Andrey Kleshchev cd8b0a4fc9 Revert "viewer#2413 Remove obsolete alert about expiring voice morphs"
This reverts commit 5c16ae1375.
Fix is correct, but should wait untill server sided fix gets deployed.
2024-09-25 09:38:54 +03:00
Andrey Kleshchev a2e9a0caf3 viewer-private#291 Object floating text does not update without moving camera 2024-09-25 09:37:59 +03:00
Andrey Kleshchev 86446c7b55 viewer#2648 Fix issues with day offset value 2024-09-24 19:34:13 +03:00
Brad Linden 5eab135892
Fix sky settings with reflection probe ambiance of 0 still receiving tonemapping (#2659)
Co-authored-by: Rye Cogtail <rye@lindenlab.com>
2024-09-23 15:19:55 -07:00
Andrey Kleshchev 22675c9a05 viewer#2627 instead of checking map for being empty got empty map 2024-09-23 20:11:55 +03:00
Brad Linden b589d394be remove dead code in build.sh 2024-09-19 12:02:57 -07:00
nat-goodspeed a7d5d4cf84
Merge pull request #2610 from secondlife/frame-profile-json
Make Develop->Render Tests->Frame Profile dump JSON to a file too.
2024-09-19 14:48:14 -04:00
Andrey Kleshchev 25969b330e viewer#2608 Crash at LLSnapshotLivePreview::getFormattedImage 2024-09-19 20:56:10 +03:00
Maxim Nikolenko 7e4cdc30f3
Don't keep updating snapshot preview when the floater is closed 2024-09-19 20:34:33 +03:00
Nat Goodspeed be40936881 trailing spaces from other branches 2024-09-19 12:40:56 -04:00
Nat Goodspeed 8342d68ea9 Merge branch 'develop' into frame-profile-json 2024-09-19 11:48:33 -04:00
Nat Goodspeed 8c40e6f0a9 Reapply commit f4b6563 -- cherry-picking lost parts of it?! 2024-09-19 11:46:08 -04:00
Andrey Kleshchev 6d842ac0af Expose LLVector4a in LLRender
Avoid using a bunch of allocators.
Make sure we use LLVector4a's SSE logic instead of LLVector3's.
Some minor optimizations.
2024-09-19 09:58:17 +03:00
Brad Linden b0597e927a add some more whitespace commits to .git-blame-ignore-revs 2024-09-18 20:04:24 -07:00
Roxanne Skelly a36cf18bab
Merge pull request #2602 from secondlife/roxie/webrtc-2601 2024-09-18 19:13:49 -07:00
Brad Linden ecfd66fb09
Avoid LL_ERRS when wgl_ARB_pixel_format is not supported (#2606)
secondlife/viewer#2599
2024-09-18 18:17:02 -07:00
Brad Linden c5a2235e7a
Turn off sLogInSignal to avoid crashing. (#2607)
fixes secondlife/viewer#2566
2024-09-18 18:16:24 -07:00
Ansariel Hiller ee3645ac96
Fix possible dereferencing of nullptr in llglsandbox.cpp (#2597) 2024-09-19 01:22:48 +03:00
Ansariel Hiller 2fd18ee162
Fix copy&paste error in llfloaterimagepreview.cpp (#2596) 2024-09-19 01:21:22 +03:00
Brad Linden 9fa95dd0b2
Fix crash in LLImProcessing when message comes in before region is fully init (#2604)
secondlife/viewer#2603
2024-09-18 14:53:36 -07:00
Nat Goodspeed f0300cf8b3 Add hexdump.h with iostream manipulators to dump a byte range as hex
or to produce readable text from a mix of printing and nonprinting ASCII
characters.

(cherry picked from commit 01a59bab1a4b7c4645271a21cfaadc3735b6029c)
2024-09-18 17:17:59 -04:00
Roxie Linden 743a1a6d8e fix trailing whitespace 2024-09-18 14:14:26 -07:00
Nat Goodspeed 705ec153c5 Add script to compare a Frame Profile JSON stats file vs. baseline.
Extract `latest_file()` logic replicated in profile_pretty.py and
profile_csv.py out to logsdir.py, and use for new profile_cmp.py.

(cherry picked from commit 439cfc97a81f221daaf8ba13aa5daa87e8511047)
2024-09-18 17:04:46 -04:00
Nat Goodspeed 725e1b7d6f Ditch trailing space. 2024-09-18 16:56:10 -04:00
Nat Goodspeed 837a6e04d8 Give our fsyspath an operator std::string() conversion method.
This is redundant (but harmless) on a Posix system, but it fills a missing
puzzle piece on Windows. The point of fsyspath is to be able to interchange
freely between fsyspath and std::string. Existing fsyspath could be
constructed and assigned from std::string, and we could explicitly call its
string() method to get a std::string, but an implicit fsyspath-to-string
conversion that worked on Posix would trip us up on Windows. Fix that.

(cherry picked from commit fbeff6d8052d4b614a0a2c8ebaf35b45379ab578)
2024-09-18 16:52:45 -04:00
Nat Goodspeed e829828dcd Introduce fsyspath subclass of std::filesystem::path.
Our std::strings are UTF-8 encoded, so conversion from std::string to
std::filesystem::path must use UTF-8 decoding. The native Windows
std::filesystem::path constructor and assignment operator accepting
std::string use "native narrow encoding," which mangles path strings
containing UTF-8 encoded non-ASCII characters.

fsyspath's std::string constructor and assignment operator explicitly engage
std::filesystem::u8path() to handle encoding. u8path() is deprecated in C++20,
but once we adapt fsyspath's conversion to C++20 conventions, consuming code
need not be modified.

(cherry picked from commit e399b02e3306a249cb161f07cac578d3f2617bab)
2024-09-18 16:52:08 -04:00
Brad Linden 1dcbae822d
Merge pull request #2600 from secondlife/brad/1016-cherry-pick
cherry-pick viewer#1016 Incorrect behavior of Physics Shapes rendering
2024-09-18 13:44:22 -07:00
Dave Parks b31fd167c0
Fix for particles not loading textures (#2598)
Also fix assert while prepping GLTF assets
2024-09-18 15:23:20 -05:00
Brad Linden 4640f3204d Merge remote-tracking branch 'origin/main' into develop 2024-09-18 13:12:17 -07:00
Roxie Linden 52091a6097 Mute other / set volume level for other is not working.
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-18 13:01:43 -07:00
Brad Linden 9890b5b2e7 added .git-blame-ignore for last commit 2024-09-18 12:26:11 -07:00
Brad Linden 5370a6d323 fix whitespace 2024-09-18 12:23:14 -07:00
Andrey Kleshchev d6e10ba4b0 viewer#1016 Incorrect behavior of Physics Shapes rendering 2024-09-18 12:21:58 -07:00
Nat Goodspeed e6d0138a6a Add LLFloaterAbout info (esp. GPU info) to Frame Profile stats dump
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-18 14:09:34 -04:00
Nat Goodspeed ee1b0061c3 Add script to convert frame profile JSON file to CSV.
Also slightly refactor profile_pretty.py.

(cherry picked from commit d60b1f92213ace6a8ab6a4a60cb01a43f45d3955)
2024-09-18 14:05:28 -04:00
Nat Goodspeed 277ee6830f Add a JSON frame profile stats file pretty-printer script.
(cherry picked from commit ab3083819793a30911354670a7929b0d3f7c104c)
2024-09-18 14:05:28 -04:00
Nat Goodspeed a3d6544be0 Give `LLGLSLShader::finishProfile()` a static default string param.
`finishProfile()` is called at least once within a `__try` block. If we default
its `report_name` parameter to a temporary `std::string`, that temporary must be
destroyed when the stack is unwound, which `__try` forbids.

(cherry picked from commit c6e6f44f50b4de391000c5b9f781a2f0a5024e76)
2024-09-18 14:05:27 -04:00
Nat Goodspeed f037cde7f4 Make Develop->Render Tests->Frame Profile dump JSON to a file too.
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 14:05:27 -04:00
Alexander Gavriliuk 27b8e6d576 #2408 The long covenant with emojis significantly slows down some operations in the viewer 2024-09-18 17:13:59 +02:00
Ansariel Hiller d9da5bbb33
Remove quads rendering mode entirely (#2593) 2024-09-18 17:09:51 +03:00
Pantera Północy 83cf25af8d
Tiny argument names correction (tittle -> title) (#2594) 2024-09-18 16:26:32 +03:00
Andrey Kleshchev 689d9e6935 More quad to triangle coverage
Quads are deprecated
2024-09-18 11:38:06 +03:00
Andrey Kleshchev 3327ae7938 Convert image drawing logic from quads to triangles 2024-09-18 11:38:06 +03:00
Andrey Kleshchev 55f2103adc viewer#2565 Optimize LLFolderViewItem::draw() 2024-09-18 11:38:06 +03:00
Dave Parks 0a617904f9
#2590 Fix for horrible FPS on Intel Mac (#2591)
* 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-17 18:14:22 -05:00