[GH-ISSUE #4198] [Issue]: Severe lag and resource usage during mobile text input #2273

Closed
opened 2026-10-21 05:46:52 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @SpicyMarinara on GitHub (Jul 28, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4198

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Text inputs experience significant lag on mobile, accompanied by device heating and sharply increased power usage. In severe cases, typed inputs override one another or arrive in the opposite order, particularly suspected in RP chats.

Expected behavior

Text input should remain responsive, preserve the order of typed characters, and avoid excessive device heating or power consumption.

Actual behavior

Most text inputs lag significantly. The device heats up and power usage increases substantially; some inputs override one another or arrive out of order.

Steps to reproduce

  1. Use Marinara on a mobile device.
  2. Open a text input, especially in an RP chat.
  3. Type text and observe input responsiveness, ordering, device temperature, and power usage.

Environment

  • Marinara Engine version: Not provided
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

No logs, screenshots, or video provided.

Additional context

The reporter suspects the text input component and its hooks are being rerendered on every input. Marinara indicated that work to address the issue had started the previous day and asked whether it occurs on staging; no staging confirmation was provided.

Discord thread: Mobile Performance
Discord thread link: https://discord.com/channels/1417099416812392641/1531467203382083695
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (2 messages)
[2026-07-28T01:03:54.571Z] Kaleb: There's significant lag on most text inputs, and I can feel my device heating up and watch my power usage increase massively. Sometimes text input is so laggy that inputs override each other or arrive in opposite order. 

I suspect a lot of it is because the entire text input component and all of its hooks are probably being rerendered on every text input, especially in RP chats.
[Discord message: https://discord.com/channels/1417099416812392641/1531467203382083695/1531467203382083695]

[2026-07-28T06:01:49.209Z] Marinara: Is this on staging? Working on addressing that since yesterday.
[Discord message: https://discord.com/channels/1417099416812392641/1531467203382083695/1531542175048011947]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Jul 28, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4198 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Text inputs experience significant lag on mobile, accompanied by device heating and sharply increased power usage. In severe cases, typed inputs override one another or arrive in the opposite order, particularly suspected in RP chats. ## Expected behavior Text input should remain responsive, preserve the order of typed characters, and avoid excessive device heating or power consumption. ## Actual behavior Most text inputs lag significantly. The device heats up and power usage increases substantially; some inputs override one another or arrive out of order. ## Steps to reproduce 1. Use Marinara on a mobile device. 2. Open a text input, especially in an RP chat. 3. Type text and observe input responsiveness, ordering, device temperature, and power usage. ## Environment - Marinara Engine version: Not provided - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video No logs, screenshots, or video provided. ## Additional context The reporter suspects the text input component and its hooks are being rerendered on every input. Marinara indicated that work to address the issue had started the previous day and asked whether it occurs on staging; no staging confirmation was provided. Discord thread: Mobile Performance Discord thread link: https://discord.com/channels/1417099416812392641/1531467203382083695 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (2 messages)</summary> ```text [2026-07-28T01:03:54.571Z] Kaleb: There's significant lag on most text inputs, and I can feel my device heating up and watch my power usage increase massively. Sometimes text input is so laggy that inputs override each other or arrive in opposite order. I suspect a lot of it is because the entire text input component and all of its hooks are probably being rerendered on every text input, especially in RP chats. [Discord message: https://discord.com/channels/1417099416812392641/1531467203382083695/1531467203382083695] [2026-07-28T06:01:49.209Z] Marinara: Is this on staging? Working on addressing that since yesterday. [Discord message: https://discord.com/channels/1417099416812392641/1531467203382083695/1531542175048011947] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:46:52 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Jul 28, 2026):

Performance investigation and implementation are claimed by @SpicyMarinara on agent/assigned-issues-4195-4198. I’m profiling the current staging input path after the recent Roleplay composer work, then will attach the shared staging draft PR with the measured fix boundary.

<!-- gh-comment-id:5100727755 --> @SpicyMarinara commented on GitHub (Jul 28, 2026): Performance investigation and implementation are claimed by @SpicyMarinara on `agent/assigned-issues-4195-4198`. I’m profiling the current staging input path after the recent Roleplay composer work, then will attach the shared staging draft PR with the measured fix boundary.
Author
Owner

@SpicyMarinara commented on GitHub (Jul 28, 2026):

Draft performance implementation PR: #4199

<!-- gh-comment-id:5100766639 --> @SpicyMarinara commented on GitHub (Jul 28, 2026): Draft performance implementation PR: #4199
Author
Owner

@SpicyMarinara commented on GitHub (Jul 28, 2026):

Fixed on staging via #4199 (a97cc55d6). Textarea quote handling now avoids whole-draft work for deletion, composition, autocorrect, and unrelated input; mobile Roleplay also pauses ambient rendering while the keyboard or draft is active. Static, functional, and mobile Playwright regressions passed.

<!-- gh-comment-id:5101518938 --> @SpicyMarinara commented on GitHub (Jul 28, 2026): Fixed on `staging` via #4199 (`a97cc55d6`). Textarea quote handling now avoids whole-draft work for deletion, composition, autocorrect, and unrelated input; mobile Roleplay also pauses ambient rendering while the keyboard or draft is active. Static, functional, and mobile Playwright regressions passed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#2273
No description provided.