Commit Graph

2775 Commits (6f072c2121fcb6f00ccc773d0ff4edc5cbfb013b)

Author SHA1 Message Date
Andrey Kleshchev 6f072c2121
Merge 2025.06 into develop
Merge 2025.06 into develop
2025-08-14 11:17:35 +03:00
Erik Kundiman 971f131ba7
Discord without auth & "Hidden Region" instead of blank (#4496)
* Rich Presence w/o requiring access to friends list

Thank you Signal Linden for the pointer from https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Client.html#af0a85e30f2b3d8a0b502fd23744ee58e
"Note: On Desktop, rich presence can be set before calling Client::Connect, but it will be cleared if the Client connects. When Client is not connected, this sets the rich presence in the current user's Discord client when available."
This lead me to setting the Application ID here https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Client.html#ad452335c06b28be0406dab824acccc49 in place of setting it on
https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1AuthorizationArgs.html which would lead Authorize, GetToken, UpdateToken, Connect, and so on.
This means we don't even need the SecAPI saveCredential, loadCredential and deleteCredential parts now.

* Discord integration is enabled by default per spec

now that we don't need the user to authorise Discord SDK to have
any access to the user's friends list, etc. (which are Discord
Relationships related, and not needed just for Rich Presence).

* "Hidden Region" if Discord location sharing is off

instead of blank. The coords are hidden too, but the Party numbers
are still shown, for consistency with TPVs' implementations.

* Remove toggleDiscordIntegration declaration

The definition had already been removed, I had forgotten to remove
this one.
2025-08-08 10:45:26 -07:00
Andrey Kleshchev ce9d66cdd1 Merge branch develop into 2025.06
# Conflicts:
#	indra/newview/llvoavatar.cpp
2025-08-06 16:05:19 +03:00
Andrey Kleshchev acc8928330
Merge release/2025.05 into develop 2025-08-06 14:17:18 +03:00
Andrey Lihatskiy 7255933d2a #3785 Set default `MediaFirstClickInteract` value to 31 (Landowner objects) 2025-08-02 13:22:30 +00:00
Erik Kundiman afcc64cb07
Rich Presence support using Discord Social SDK (#4457)
* Rich Presence support using Discord Social SDK

Download DiscordSocialSdk-1.4.9649.zip from
https://discord.com/developers/applications/1394782217405862001/social-sdk/downloads
Add -DUSE_DISCORD:BOOL=ON to your cmake line.
The Discord app needs to be set to be a public client in the OAuth2 tab.
All Discord-related code are contained within one file, llstartup.cpp,
and other classes access it through some opaque layer, static functions,
otherwise we'd get these "duplicate symbol" linking errors.

* Move Discord-related code to llappviewer.cpp

The doFrame is the one called over and over again, so running the
Discord callbacks from there shouldn't have one extra function
overhead, while running the Discord initialisation is only once so
it's much more okay to have the extra function overhead there.

* panel_preferences_privacy tabs

Add tab and checkboxes for discord social SDK integration options to panel_preferences_privacy.xml

* Shorten Discord-related local variable names

* Connect to Discord now through privacy tab

Now the access token is saved the way passwords are saved, but
without a username, so we can have some persistence without having
to implement an OAuth2 backend server cause we would have to store
those tokens there anyway still, and it's just simpler to not go
that way. Discord Social SDK doesn't have a helper for sending code
to a custom server anyway, that we would have to have some
asynchronous HTTP requestor ready.
Show location check button gets enabled only when Discord
integration is enabled, though it's not functioning yet.

* Location for Discord Rich Presence Activity State

I was going to use LLAgentUI::buildLocationString but there's no
location format that shows only region and coords without having
to have the parcel name empty, so I copied buildLocationString
implementation in the case of LOCATION_FORMAT_NO_MATURITY but when
the parcel name is empty.
I had to make updateDiscordActivity check agent's ID and the
existence of agent avatar pointer first before trying to set
Activity Details or State, cause I like the "Show location" button
be checkable not only after online when both the ID & pointer will
have existed. I think this way is simpler than programmatically
enabling the "Show location" button after the user is logged in.
I put a trigger to Activity update somewhere after the user is
logged in for now, not yet after a TP.
The elapsed time gets reset whenever Activity is updated for now,
but I'll try to make elapsed time extended instead.
No Party for now, because I couldn't find a way to make a Party
shown without showing its CurrentSize (I could still get away not
showing its MaxSize by setting it to 0), so the State (location)
is shown above the elapsed time, not on the right of it.
I'll try to figure out to get some representative numbers for its
CurrentSize & MaxSize next.
Also no privacy on hiding the username for now, until the UI is
ready.

* Update Rich Presence location on region change

I had to find a spot in source code where it doesn't cause a crash
(it did in LLAgent::setRegion), but I'm not removing the one in
llstartup.cpp because on login, the one in llviewermessage.cpp
gets only the placeholder coords (10, 10, 10).

* Show display name too on Discord Rich Presence

Avatar name cache can be used right away upon login now after I
moved the update call to the end of PRECACHE section in llstartup.

* Show Discord Rich Presence Activity Party

By setting CurrentSize to the number of people within chat radius,
and MaxSize to the number of people within near range.

* Call updateDiscordActivity too in Discord init

so when the user enables the integration after being logged in,
the init can show the name and location right away.

* Discord Rich Presence: Hide name & connect to llappviewer.cpp

Add option to show/hide avatar name in privacy panel & connect rich presense directly to llappviewer.cpp

* Discord time elapsed not reset on region change

Time elapses right after viewer launch even before login.
Plus parameter name change in header to make it the same as in
implementation.

* Cache bool setting retrievals in updateDiscordActivity

As suggested by Andrey Kleschev.
getBOOL and getF32 are expensive, so using `static LLCachedControl<>`
is the way to do it in llappviewer.cpp.

* Check Discord creds existence before getting token

as suggested by Andrey Kleshchev, anticipating external factors
such as user moving settings from another PC.

* Tracy visibility for looped Discord function calls

As suggested by Andrey Kleshchev. They likely can get pricey so
they need to be visible in the profiler.

* Discord-related error handling/logging

plus delay saving Discord credentials to only after the access
token is successfully updated on Discord, and try to disconnect
from Discord when the integration gets disabled regardless whether
there are credentials to delete or not and whether there's an
access token to revoke or not.

* Use getAvatars already called for Discord Party numbers

so we don't have to make any extra getAvatars calls just for this,
as it's pricy in crowds, and we'll just be piggybacking
`updateSpeakerList` and `updateNearbyList`.

* Assemble Discord Activity Details only once

by saving it to a static global string for reuse.

* Remove updateDiscordActivity call in startup loop

The State field (region & coords) is updated well enough without it
now.

* Rename handleDiscordSocial to toggleDiscordIntegration

* Update Discord Activity only when integration is enabled

No need to check setting for the status change callback one,
because getting there would need to be connected to Discord first,
which in turn needs the integration to be enabled first.

---------

Co-authored-by: Secret Foxtail <remmy@megapahit.net>
2025-07-31 08:54:39 -07:00
Kyler Eastridge 38a6a4b1cd Fix spelling issue in settings.xml 2025-07-29 20:12:46 +03:00
Kyler Eastridge aae33e4ef2 It's a target, not a hint 2025-07-29 20:12:46 +03:00
Kyler Eastridge c7baab3926 This should be off by default 2025-07-29 20:12:46 +03:00
Kyler Eastridge 0a3c0222e6 Let's do 2m distance instead of 4m 2025-07-29 20:12:46 +03:00
Kyler Eastridge eb9c83cda3 Initial limit look at distance code 2025-07-29 20:12:46 +03:00
Kyler Eastridge 82477c484d Add ability to disable look at hints 2025-07-29 20:12:46 +03:00
Kyler Eastridge 87fa994ad0 Add option to disable selection hints 2025-07-29 20:12:46 +03:00
Andrey Kleshchev 792a38b68c #3705 Add an option to hide the $L balance 2025-07-29 18:05:34 +03:00
Darl 6ed9974775 Fix incorrectly calculated number in comment and where it was referenced 2025-07-26 14:02:22 +03:00
Darl c4204a9687 Media first click interact large number value fix 2025-07-26 14:02:22 +03:00
Jonathan "Geenz" Goodman af507ce246 Merge branch 'main' into release/2025.05 2025-07-25 18:05:53 -04:00
Andrey Kleshchev f80d62e6b2 #3851 Increase cache size
Increases default to 8GB and maximum to 32GB.
Viewer now supports 2K textures which require more space, so altered
disk cache vs textures space a little.
Made spinner a bit wider to properly fit whole cache string.
2025-07-24 03:13:17 +03:00
Andrey Kleshchev 211b6c65fd #4337 Full Screen debug setting on MacOS results in a black screen 2025-07-16 23:41:54 +03:00
Andrey Kleshchev ecf220f1b8 #4242 Debug dump improvement #2 2025-07-04 00:24:30 +03:00
Andrey Kleshchev 5a0bbdc510 #4242 Debug dump improvement
for better comparison with collada output
2025-07-03 00:32:58 +03:00
Andrey Kleshchev fcd9a9e0de #4242 Better issue logging 2025-07-01 20:02:29 +03:00
Jonathan "Geenz" Goodman db4994734d
Merge pull request #4302 from secondlife/geenz/frametime-metric-improvements
First pass at adding expanded frametiming stats to the viewer.
2025-06-27 16:05:20 -04:00
Jonathan "Geenz" Goodman 1557443135 First pass at adding expanded frametiming stats to the viewer. 2025-06-27 15:41:58 -04:00
Jonathan "Geenz" Goodman e15a892821
Merge pull request #4177 from DarlCat/hud-media-autoplay
Media changes including support for PRIM_MEDIA_FIRST_CLICK_INTERACT and HUD autoplay
2025-06-25 14:32:09 -04:00
Callum Prentice 63ef595c30 Point the URL for the Avatar Welconme Pack at the production location (Eventually - marshalled by [GIRD LOWER]) 2025-06-11 09:05:29 -07:00
Callum Prentice 8d3d6ee56a Remove the old avatar selector (Complete Avatars) - replaced by Avatar Welcome Pack 2025-06-03 19:24:04 -07:00
Callum Prentice d8db0ff30c First commit - bare bones of it working - pointing to test page on S3 2025-06-03 17:50:15 -07:00
Andrey Lihatskiy b08ba3fa7b Merge branch 'main' into marchcat/2505-merge
# Conflicts:
#	.github/workflows/qatest.yaml
#	indra/llcommon/llsdutil.h
#	indra/llui/llflatlistview.h
#	indra/newview/llinventorybridge.cpp
#	indra/newview/lloutfitgallery.cpp
#	indra/newview/lloutfitgallery.h
2025-05-28 21:38:00 +03:00
Darl ea75bfd410 Implement support for PRIM_MEDIA_FIRST_CLICK_INTERACT and autoplay for HUD media 2025-05-28 10:49:02 -05:00
Andrey Kleshchev 888d4ae9df #4072 Fix Appearance floater not updating 2025-05-14 00:02:16 +03:00
Maxim Nikolenko 377d1b3813
#4010 Add audio ping for chat mentions 2025-05-08 19:35:19 +03:00
Andrey Lihatskiy ae93198735 Merge branch 'main' into marchcat/maint-c-restore
# Conflicts:
#	indra/llcommon/lldate.h
#	indra/newview/llappviewer.cpp
#	indra/newview/llinventorybridge.cpp
#	indra/newview/llmaterialeditor.cpp
#	indra/newview/llviewerparceloverlay.cpp
#	indra/newview/llvoavatar.cpp
2025-04-15 19:31:20 +03:00
Maxim Nikolenko dab8b9c623 #3383 'InventoryAddAttachmentBehavior' setting should affect inventory panel in List view; update persistence of new settings 2025-04-11 00:33:13 +03:00
Andrey Lihatskiy 5d7a5001b4 Merge commit '9e24b30' into marchcat/maint-c/restore
# Conflicts:
#	indra/llmath/v2math.cpp
#	indra/llmath/v2math.h
#	indra/llmath/v3math.h
#	indra/llmath/v4math.h
#	indra/llui/llfolderviewitem.cpp
#	indra/llui/llfolderviewitem.h
#	indra/llui/llfolderviewmodel.h
#	indra/llui/llmodaldialog.cpp
#	indra/llui/lltexteditor.cpp
#	indra/llui/lltexteditor.h
#	indra/llwindow/llwindowwin32.cpp
#	indra/newview/llagent.cpp
#	indra/newview/llagentcamera.h
#	indra/newview/llavatarrenderinfoaccountant.cpp
#	indra/newview/llconversationmodel.h
#	indra/newview/llfloaterinventorysettings.cpp
#	indra/newview/llfloaternamedesc.cpp
#	indra/newview/llfloaternamedesc.h
#	indra/newview/llfloaterobjectweights.cpp
#	indra/newview/llfloaterobjectweights.h
#	indra/newview/llfolderviewmodelinventory.h
#	indra/newview/llinspecttexture.cpp
#	indra/newview/llinventorybridge.cpp
#	indra/newview/llinventorybridge.h
#	indra/newview/llinventoryfunctions.cpp
#	indra/newview/llinventorygallery.h
#	indra/newview/llinventorygallerymenu.cpp
#	indra/newview/llinventorymodel.cpp
#	indra/newview/llinventorypanel.cpp
#	indra/newview/llinventorypanel.h
#	indra/newview/llmaterialeditor.cpp
#	indra/newview/lloutfitgallery.cpp
#	indra/newview/lloutfitgallery.h
#	indra/newview/lloutfitslist.cpp
#	indra/newview/lloutfitslist.h
#	indra/newview/llpanelgroupcreate.cpp
#	indra/newview/llpanelgroupgeneral.cpp
#	indra/newview/llpanelobjectinventory.cpp
#	indra/newview/llpaneloutfitsinventory.h
#	indra/newview/llpanelprofile.cpp
#	indra/newview/llpanelwearing.cpp
#	indra/newview/llreflectionmap.cpp
#	indra/newview/llselectmgr.cpp
#	indra/newview/llsidepanelappearance.cpp
#	indra/newview/llsidepaneliteminfo.cpp
#	indra/newview/llteleporthistorystorage.cpp
#	indra/newview/lltexturectrl.cpp
#	indra/newview/lltexturectrl.h
#	indra/newview/lltexturefetch.cpp
#	indra/newview/lltexturefetch.h
#	indra/newview/llviewerassetupload.cpp
#	indra/newview/llviewercamera.cpp
#	indra/newview/llviewercamera.h
#	indra/newview/llviewermenufile.cpp
#	indra/newview/llviewerobject.h
#	indra/newview/llviewertexture.cpp
#	indra/newview/llviewerwindow.cpp
#	indra/newview/llvoavatar.cpp
#	indra/newview/llvoavatar.h
#	indra/newview/llvoavatarself.cpp
#	indra/newview/llvovolume.cpp
#	indra/newview/llvovolume.h
#	indra/newview/tests/llviewerassetstats_test.cpp
2025-04-10 06:01:50 +03:00
Andrey Lihatskiy 2813097aff Merge commit '7947ce3' into marchcat/maint-c/maint-c-restore
# Conflicts:
#	indra/newview/llappviewer.cpp
2025-04-10 01:05:12 +03:00
Andrey Kleshchev a7f3785cd6 #3873 Return back AudioLevelWind
Partial revert from d00b6e4216

Our statistics claimed that AudioLevelWind is unused, but it is in use.
2025-04-07 22:49:55 +03:00
Jonathan "Geenz" Goodman ccdcbfeebd Merge branch 'release/2025.03' into release/2025.04 2025-04-01 13:10:33 -04:00
Maxim Nikolenko 515c1f15d8
#3044 Add option to hide L$ balance for Snapshots with Interface showing 2025-03-31 19:06:06 +03:00
Jonathan "Geenz" Goodman 695247539b Mitigate some of the frame stuttering we're seeing by setting the VRAM divisor to 1.
tl;dr - this helps avoid frequent texture reuploads to VRAM in some texture heavy areas.  This speaks to some bigger problems we're seeing in our texture streaming system however.  You will see similar problems by manually setting the texture VRAM manually.
2025-03-26 19:01:30 -04:00
Jonathan "Geenz" Goodman 5e5d466628
Readd probe count setting (#3793)
* Readd max probe count.  Disable dynamic probe allocation by default (for now).
2025-03-24 17:59:13 -04:00
Maxim Nikolenko f04992676d
#3685 add test floater for new slapps 2025-03-19 00:50:18 +02:00
Jonathan "Geenz" Goodman 5ce0c5858c
#3409 Make maximum probe count adjustable. (#3709)
* #3409 Make probe count adjustable to better accomodate low VRAM scenarios
2025-03-11 06:40:36 +02:00
Jonathan "Geenz" Goodman f5a25a9d6a
Add RenderTextureVRAMDivisor (#3648)
#3647 Add texture VRAM use divisor.
2025-03-05 19:06:01 -05:00
Andrey Kleshchev 85c77ee910 #3611 Decrease TextureScaleMinAreaFactor 2025-03-05 23:00:01 +02:00
Maxim Nikolenko b3fb4183e2
#3491 Rename all uses of Release Candidate to Beta 2025-01-31 15:46:44 +02:00
Andrey Kleshchev 97826b555b viewer#3169 Legacy settings should no longer be automatically converted 2024-12-10 21:05:41 +02:00
Dave Parks 5e35785b8d
#3219 Revert default exposure thresholds to DeltaFPS values (#3228) 2024-12-06 13:42:48 -06:00
Dave Parks 1120a7ccb9
#3210 Fix for "Texture will be downscaled" happening too often. (#3212) 2024-12-05 13:52:03 -06:00
Dave Parks 4b5d4be5a8
#3106 Lower maximum texture bias back to 4, reintroduce camera importance texture scaling (#3207) 2024-12-04 12:33:04 -06:00