mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3791] [Issue]: Firefox Roleplay rendering stalls app-wide menu navigation #2045
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#2045
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Xelvanis on GitHub (Jul 18, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3791
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Firefox's Roleplay paint/compositing path causes app-wide sluggishness while the Roleplay surface remains active behind menus. This is a Firefox rendering compatibility issue triggered by Marinara's translucent message bubbles, shadows, overlay gradient, and vignette, not a pagination or API-loading problem.
The problem reproduces with Pulse, RGB, and the custom cursor disabled. Chromium handles the existing visual workload substantially better.
Expected behavior
Opening the sidebar and top-bar panels should remain responsive while a Roleplay chat is active, without reducing the existing 100-item library pagination contract. Users who need the faster rendering path should be able to choose it explicitly without forcing the flatter appearance on everyone.
Actual behavior
In Firefox, menu navigation slows down while the browser continues painting and compositing the Roleplay surface underneath the panels. Larger chats and libraries can amplify the total workload, but they are not the primary cause.
Confirmed rendering evidence
A Firefox-only CSS experiment produced a dramatic improvement in the reporter's normal, in-use Firefox environment without changing pagination, API payloads, React state, or menu lifecycle. The experiment:
Because only paint-related CSS changed, the result confirms that Firefox rendering is the primary bottleneck. The reporter then tested each reduction independently in the same Firefox profile and populated Roleplay chat:
No isolated reduction was reported as having no effect. Opaque bubbles and shadow removal are the strongest confirmed contributors; the overlay result is less certain and vignette removal is low-impact.
Earlier production measurements remain supporting evidence. With the same real data and the existing 100-item contract, Firefox showed roughly double Chromium's frame-gap p95 (about 24 ms versus 12 ms). A smaller-page experiment reduced total work but was rejected as a product fix; Chromium can handle 100 items and the rendering fallback improves Firefox without changing that contract.
Proposed optional visual profile
Add a persistent Reduced paint effects toggle under Appearance > Roleplay Messages. This is an optional visual profile, not automatic browser detection.
When enabled, the profile may:
Keep the normal visual profile as the default so existing Chromium and Firefox appearance does not change without user choice. Make the toggle available in every browser, while describing it as useful when Roleplay or menu navigation feels sluggish, especially in Firefox. The setting should apply immediately, persist with the other appearance settings, and require no reload.
Steps to reproduce
Environment
Candidate review findings
The reduced-paint direction is validated, but the current experiment needs refinement before merge:
box-shadow: noneclears Tailwind's complete shadow stack, including the normal bubble ring and the semantic conversation-start/hidden-from-AI ring color. Disable only the expensive drop-shadow component so semantic rings remain visible.var(--background)base changes the Roleplay Messages Background Opacity contract. At 0%,--mari-rp-bubble-bgbecomes transparent but Firefox still receives an opaque base. Preserve the explicit 0% transparent state while keeping normal bubbles compositor-opaque.Acceptance criteria
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Jul 18, 2026):
Claimed in draft PR #3800 on branch
agent/issue-sweep-2026-07-19.@SpicyMarinara commented on GitHub (Jul 18, 2026):
Addressed in #3800. Roleplay now has a persisted opt-in Reduced paint effects profile that flattens expensive shadows and scene overlays without overriding semantic rings or custom card CSS. The regression passes in Chromium and Firefox; final CI is green.