mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4897] [Issue]: Performance-reduction settings don't apply on desktop Conversation mode (backdrop-blur pins weak GPUs) #2715
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#2715
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 @kolacheee on GitHub (Aug 11, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4897
Originally assigned to: @SpicyMarinara on GitHub.
Summary
On desktop, the two performance-reduction settings do not apply where a weak-GPU user actually needs them: Reduce Ambient Animations & Effects only removes backdrop-blur on mobile-width screens, and Reduced Paint Effects only applies in Roleplay mode. As a result, a desktop Conversation chat with an animated card (GIF) plus an open overlay panel (e.g. Chat Summary) can pin an integrated GPU at ~50%+ with no in-app way to reduce it.
Expected behavior
Enabling Reduce Ambient Animations & Effects on a laptop/desktop should reduce the actual paint/compositing cost (including flattening
backdrop-filterblur), the same way it already does on mobile. And a user in Conversation mode should have some paint-flattening lever available, not only Roleplay users.Actual behavior
backdrop-filter: blur()panel fully blurred, so the blur keeps recomputing every frame over the animating GIF behind it.Steps to reproduce
Environment
ef0b1bb, running the staging source via start.bat)Logs, screenshots, or video
Task Manager shows GPU 0 (AMD Radeon integrated) at ~53% / 62 C while GPU 1 (NVIDIA RTX) sits at 0%, with only a Conversation chat plus one overlay panel open. (Screenshots available from the reporter.)
Additional context
Likely root cause, from a read of
packages/client:Reduce Ambient Animations & Effects removes backdrop-blur only on mobile. In
packages/client/src/styles/globals.css(around line 3398) the rule that clearsbackdrop-filterunderhtml[data-marinara-reduced-effects="true"]is wrapped in@media (max-width: 767px):On desktop the toggle therefore stops animations but keeps every frosted-glass panel fully blurred, which is the expensive part on a weak GPU (a
backdrop-filter: blur()is cheap over static content but recomputes every frame when the content behind it, such as an animated GIF, is moving).Reduced Paint Effects is Roleplay-only. The flag is
roleplayReducedPaintEffects(ui.store.ts; toggled inSettingsPanel.tsxaround line 5120; consumed only inChatRoleplaySurface.tsxaround line 1389). Its help text says "Flatten costly Roleplay transparency, shadows, and scene overlays," so Conversation mode and shared overlay panels get no relief from it.For reference, the Chat Summary overlay is a
backdrop-blur-mdpanel withshadow-2xl(packages/client/src/components/chat/ChatCommonOverlays.tsxaround line 221), representative of the many blurred overlays in the chat chrome.Suggested directions (for maintainer decision):
backdrop-filter: nonerule so it also applies on desktop (it is already the behavior on mobile, so this is consistent). Optionally reduce blur radius rather than removing it entirely, for a lighter-but-still-styled look.Open question worth a profiler pass (separate from the two scoping fixes above): confirm with DevTools "Paint flashing" / the Layers panel whether idle (but mounted) blur layers cause any avoidable repaint when nothing behind them is animating, versus the cost being solely the visible blur-over-animation. If large regions repaint with nothing moving, that would be an additional, distinct inefficiency.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@kolacheee commented on GitHub (Aug 11, 2026):
Concrete case: custom-card CSS animations bypass the reduce toggles entirely.
While debugging a user whose integrated GPU sat at ~53% (fans audible; the DevTools FPS meter read 158 fps) on an otherwise idle chat, DevTools "Paint flashing" showed the message bubble repainting every frame. The root cause was an animated
box-shadowin the character card's own<style>(it is the Character CSS example fromdocs/appearance/card-css-theming.md):box-shadowis a paint property, so animating it forces a full re-rasterization (two Gaussian-blur recomputations) on every frame. On a high-refresh panel that is 150+ repaints per second, and anybackdrop-filterpanel layered over it re-blurs too.The gap this adds to this issue: "Reduce Ambient Animations & Effects" and
prefers-reduced-motiondo not reach animations authored in card CSS (the[data-card-css]scope), so a single card can pin a weak GPU with no user escape hatch. Worth considering alongside the two scoping fixes: havehtml[data-marinara-reduced-effects="true"](and reduced-motion) also freeze animations/transitions inside[data-card-css], for example:(That freezes CSS animations like the glow pulse; it does not stop animated GIFs, which are image playback rather than CSS.)
A companion docs PR is being filed to fix the Character CSS example itself, which currently teaches the box-shadow-animation antipattern, so it animates
opacityon an overlay layer instead.@SpicyMarinara commented on GitHub (Aug 11, 2026):
I’m taking this in draft PR #4898. I’ll keep the fix focused: make the existing reduced-effects flag flatten backdrop filters on desktop as well as mobile, and ensure shared Conversation overlays inherit the same paint reduction without adding a second overlapping setting.
@SpicyMarinara commented on GitHub (Aug 11, 2026):
Implemented in #4898: the existing reduced-effects backdrop-blur override now applies at desktop widths too, including shared Conversation overlays. Focused source regression coverage and a changelog entry are included.