diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 59a5cb34..fb09dc92 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs @@ -350,6 +350,7 @@ namespace OpenSim.Region.Framework.Scenes private bool m_lastLandCollide; private TeleportFlags m_teleportFlags; + private int m_fastRezLoginNoticeSent; public TeleportFlags TeleportFlags { get { return m_teleportFlags; } @@ -4017,6 +4018,11 @@ namespace OpenSim.Region.Framework.Scenes NeedInitialData = -1; + // Only a fresh grid login gets the one-time FastRez notice. Do not + // repeat it on teleports, crossings, HG visits or child agents. + bool sendFastRezLoginNotice = !IsNPC && !IsChildAgent && + m_scene.FastRezNearbyFirst && IsRealLogin(m_teleportFlags); + bool selfappearance = (flags & 4) != 0; // this should enqueued on the client processing job to save threads @@ -4166,6 +4172,29 @@ namespace OpenSim.Region.Framework.Scenes m_lastChildAgentUpdateGodLevel = GodController.ViwerUIGodLevel; m_childUpdatesBusy = false; // allow them } + + // Direct-to-owner chat after the viewer has processed its CAPS + // seeds and initial scene data. Never publish this to region chat. + if (sendFastRezLoginNotice && + Interlocked.CompareExchange(ref m_fastRezLoginNoticeSent, 1, 0) == 0) + { + try + { + ControllingClient.SendChatMessage( + "OpenGenesisLINK FastRez 2.0 aktiviert", + (byte)ChatTypeEnum.Owner, + AbsolutePosition, + "OpenGenesisLINK System", + UUID.Zero, + UUID.Zero, + (byte)ChatSourceType.Object, + (byte)ChatAudibleLevel.Fully); + } + catch (Exception error) + { + m_log.Debug("[FASTREZ]: Could not send private login notice.", error); + } + } }); } diff --git a/doc/NexVerse/OGL_FASTREZ_PHASE1.md b/doc/NexVerse/OGL_FASTREZ_PHASE1.md index 99f820e4..80bbf617 100644 --- a/doc/NexVerse/OGL_FASTREZ_PHASE1.md +++ b/doc/NexVerse/OGL_FASTREZ_PHASE1.md @@ -21,6 +21,19 @@ Stand: 23.10.2026 | PR #281 | separater Simulator-Patch, **nicht** Teil von PR # nicht für den gesonderten Distanz-Culling-Pfad. Der OpenSim-Standard bleibt `false`. +### Login-Chat (FastRez 2.0) +Nach dem erfolgreichen normalen Grid-Login und nach Verarbeitung der Viewer-CAPS-Seeds +sieht **nur der eingeloggte Avatar** genau einmal die lokale Meldung: + +`OpenGenesisLINK FastRez 2.0 aktiviert` + +Die Meldung wird ausschließlich bei aktiviertem `FastRezNearbyFirst` über +`ChatTypeEnum.Owner` direkt an den Viewer geschickt. Keine Region-Broadcasts, +keine Wiederholung bei Teleports oder Regionswechseln. Hypergrid-Ankünfte +mit `ViaHGLogin` sind von dieser einmaligen Grid-Login-Meldung ausgeschlossen. +Der Text ist eine Aktivierungsinformation, kein Versprechen über eine feste +gemessene Beschleunigung. + Kein neuer Dienst, keine Datenbank, keine Assets-Migration, kein Redis, keine Änderungen an Hypergrid-Autorisierung oder Avatar-Bake-Daten. Der noch offene OGL AssetService PR #237 ist unabhängig und unverändert. diff --git a/tools/ci/verify_avatar_appearance_config.py b/tools/ci/verify_avatar_appearance_config.py index 00b1c2a1..0b6dbc19 100644 --- a/tools/ci/verify_avatar_appearance_config.py +++ b/tools/ci/verify_avatar_appearance_config.py @@ -53,4 +53,12 @@ assert "Vector3.DistanceSquared(origin, grp.AbsolutePosition)" in presence assert "nearby.AddRange(distant);" in presence assert "if (cacheEmpty || !grp.IsViewerCachable)" in presence, "viewer-cache probe handling must survive" -print("OpenGenesisLINK FastRez (avatar and near-world) configuration: OK") +# The login banner is a single local chat packet, never a region broadcast. +# A real login and enabled FastRez must both be present; crossings/TPs stay silent. +assert "OpenGenesisLINK FastRez 2.0 aktiviert" in presence +assert "m_scene.FastRezNearbyFirst && IsRealLogin(m_teleportFlags)" in presence +assert "Interlocked.CompareExchange(ref m_fastRezLoginNoticeSent, 1, 0) == 0" in presence +assert "(byte)ChatTypeEnum.Owner" in presence +assert "ControllingClient.SendChatMessage(" in presence + +print("OpenGenesisLINK FastRez (avatar, near-world and private login chat) configuration: OK")