secondlife / secondlife/viewer

MOAP Interaction on an in-world object is slow if there's also a HUD with MOAP interaction.

Open
#4,412 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug media team:viewer
Dominant language
C++
Stars
299
Forks
146
Avg merge
1d 9h
Merged PRs (30d)
88

Description

Environment

Second Life Release 7.2.0.16356654553 (64bit)
Release Notes

You are at 65.0, 38.7, 38.5 in Danger! Danger! located at simhost-03e3afe4338435f44.agni
SLURL: http://maps.secondlife.com/secondlife/Danger%21%20Danger%21/65/39/39
(global coordinates 261,185.0, 249,639.0, 38.5)
Second Life Server 2025-04-24.14648572313
Release Notes

CPU: Intel(R) Core(TM) i7-5930K CPU @ 3.50GHz (3491.91 MHz)
Memory: 32610 MB
OS Version: Microsoft Windows 10 64-bit (Build 19045.6093)
Graphics Card Vendor: NVIDIA Corporation
Graphics Card: NVIDIA GeForce GTX 1080/PCIe/SSE2

Windows Graphics Driver Version: 32.0.15.6590
OpenGL Version: 4.6.0 NVIDIA 565.90

Window size: 1757x1385
Font Size Adjustment: 96pt
UI Scaling: 1
Draw distance: 128m
Bandwidth: 3000kbit/s
LOD factor: 1.375
Render quality: 3
Texture memory: 8192MB
Disk cache: Max size 1638.4 MB (13.2% used)

J2C Decoder Version: KDU v7.10.4
Audio Driver Version: OpenAL, version 1.1 ALSOFT 1.24.2 / OpenAL Community / OpenAL Soft: OpenAL Soft
Dullahan: 1.14.0.202408091639
CEF: 118.4.1+g3dd6078+chromium-118.0.5993.54
Chromium: 118.0.5993.54
LibVLC Version: 3.0.21
Voice Server Version: Vivox 4.10.0000.32327.5fc3fe7c.5942f08

Packets Lost: 2/34,723 (0.0%)
July 22 2025 11:31:43

Description

MOAP Interaction on an in-world object is slow if there's also a HUD with MOAP interaction.

Reproduction steps

Note: This does not reproduce 100% of the time so there may be some other precondition.

  1. Create a prim and put the following script in it
default {
    state_entry() {
        llSetLinkMedia( LINK_THIS, 0, [
            PRIM_MEDIA_CURRENT_URL, "http://lecs-viewer-web-components.s3.amazonaws.com/v3.0/agni/avatars.html",
            PRIM_MEDIA_HOME_URL, "http://lecs-viewer-web-components.s3.amazonaws.com/v3.0/agni/avatars.html",
            PRIM_MEDIA_FIRST_CLICK_INTERACT, TRUE,
            PRIM_MEDIA_AUTO_PLAY, TRUE,
            PRIM_MEDIA_CONTROLS, PRIM_MEDIA_CONTROLS_MINI
        ] );
    }
}
  1. Take a copy of the prim, attach it to your HUD and rotate it so the Media is visible
  2. Set Preferences > Sound & Media > Media first-interact: Owned objects.
  3. Move your cursor over the media on the in-world object and note how quickly it reacts.

Observed: There's a delay of more than a second on the media of the in-world object.

https://github.com/user-attachments/assets/041144f6-c45b-4b6e-82ff-8c6e5ba11326

Expected: Less delay.

Workaround: Remove the MOAP from your HUD, and the in-world MOAP performs as expected.



This repo is using Opire - what does it mean? 👇
💵 Everyone can add rewards for this issue commenting /reward 100 (replace 100 with the amount).
🕵️‍♂️ If someone starts working on this issue to earn the rewards, they can comment /try to let everyone know!
🙌 And when they open the PR, they can comment /claim #4412 either in the PR description or in a PR's comment.

🪙 Also, everyone can tip any user commenting /tip 20 @Dan-Linden (replace 20 with the amount, and @Dan-Linden with the user to tip).

📖 If you want to learn more, check out our documentation.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the delay with the supplied prim script, an attached HUD copy, and the Owned objects media-first-interact setting. Trace the viewer's MOAP input handling for in-world objects when a HUD media surface is also present; done means the in-world media responds without the observed delay while the HUD MOAP remains attached.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.