[GH-ISSUE #4897] [Issue]: Performance-reduction settings don't apply on desktop Conversation mode (backdrop-blur pins weak GPUs) #2715

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

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-filter blur), 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

  • With an animated-GIF message card visible and the Chat Summary overlay open, an integrated GPU sits at ~53% (62 C, fans audible) on an otherwise idle Conversation chat.
  • Toggling Reduce Ambient Animations & Effects ON has effectively no effect on desktop GPU usage. It stops decorative animations but leaves every backdrop-filter: blur() panel fully blurred, so the blur keeps recomputing every frame over the animating GIF behind it.
  • Reduced Paint Effects (which flattens transparency/shadows/overlays) is not available to help, because it is scoped to Roleplay mode only.

Steps to reproduce

  1. On a desktop/laptop (viewport wider than 767px), preferably with a weak/integrated GPU, open a Conversation chat whose latest message renders an animated GIF (and/or a custom-CSS card).
  2. Open an overlay panel over the chat (e.g. Chat Summary).
  3. Watch GPU utilization in Task Manager: the integrated GPU climbs to ~50%+ and stays there; fans spin up.
  4. Settings > Appearance > enable Reduce Ambient Animations & Effects. Observe that GPU usage does not meaningfully drop.

Environment

  • Marinara Engine version: v2.4.2 (build ef0b1bb, running the staging source via start.bat)
  • Install type: source (start.bat)
  • OS + version: Windows 11
  • Browser or app shell: Vivaldi (Chromium). GPU: AMD Radeon integrated graphics (a discrete NVIDIA RTX is present but idle).

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:

  1. Reduce Ambient Animations & Effects removes backdrop-blur only on mobile. In packages/client/src/styles/globals.css (around line 3398) the rule that clears backdrop-filter under html[data-marinara-reduced-effects="true"] is wrapped in @media (max-width: 767px):

    @media (max-width: 767px) {
      html[data-marinara-reduced-effects="true"] [class*="backdrop-blur"],
      html[data-marinara-reduced-effects="true"] .retro-card,
      html[data-marinara-reduced-effects="true"] .os-window {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
      }
    }
    

    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).

  2. Reduced Paint Effects is Roleplay-only. The flag is roleplayReducedPaintEffects (ui.store.ts; toggled in SettingsPanel.tsx around line 5120; consumed only in ChatRoleplaySurface.tsx around 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.

  3. For reference, the Chat Summary overlay is a backdrop-blur-md panel with shadow-2xl (packages/client/src/components/chat/ChatCommonOverlays.tsx around line 221), representative of the many blurred overlays in the chat chrome.

Suggested directions (for maintainer decision):

  • Un-scope the reduced-effects backdrop-filter: none rule 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.
  • Make a paint-flattening lever available in Conversation mode / for shared overlay panels, not just Roleplay, or fold it into Reduce Ambient Animations & Effects.

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:

  • I DID NOT read this template and provide the requested details.
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-filter` blur), 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 - With an animated-GIF message card visible and the Chat Summary overlay open, an integrated GPU sits at ~53% (62 C, fans audible) on an otherwise idle Conversation chat. - Toggling **Reduce Ambient Animations & Effects** ON has effectively no effect on desktop GPU usage. It stops decorative animations but leaves every `backdrop-filter: blur()` panel fully blurred, so the blur keeps recomputing every frame over the animating GIF behind it. - **Reduced Paint Effects** (which flattens transparency/shadows/overlays) is not available to help, because it is scoped to Roleplay mode only. ## Steps to reproduce 1. On a desktop/laptop (viewport wider than 767px), preferably with a weak/integrated GPU, open a Conversation chat whose latest message renders an animated GIF (and/or a custom-CSS card). 2. Open an overlay panel over the chat (e.g. Chat Summary). 3. Watch GPU utilization in Task Manager: the integrated GPU climbs to ~50%+ and stays there; fans spin up. 4. Settings > Appearance > enable **Reduce Ambient Animations & Effects**. Observe that GPU usage does not meaningfully drop. ## Environment - Marinara Engine version: v2.4.2 (build ef0b1bb, running the staging source via start.bat) - Install type: source (start.bat) - OS + version: Windows 11 - Browser or app shell: Vivaldi (Chromium). GPU: AMD Radeon integrated graphics (a discrete NVIDIA RTX is present but idle). ## 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`: 1. **Reduce Ambient Animations & Effects removes backdrop-blur only on mobile.** In `packages/client/src/styles/globals.css` (around line 3398) the rule that clears `backdrop-filter` under `html[data-marinara-reduced-effects="true"]` is wrapped in `@media (max-width: 767px)`: ```css @media (max-width: 767px) { html[data-marinara-reduced-effects="true"] [class*="backdrop-blur"], html[data-marinara-reduced-effects="true"] .retro-card, html[data-marinara-reduced-effects="true"] .os-window { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; } } ``` 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). 2. **Reduced Paint Effects is Roleplay-only.** The flag is `roleplayReducedPaintEffects` (`ui.store.ts`; toggled in `SettingsPanel.tsx` around line 5120; consumed only in `ChatRoleplaySurface.tsx` around 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. 3. For reference, the Chat Summary overlay is a `backdrop-blur-md` panel with `shadow-2xl` (`packages/client/src/components/chat/ChatCommonOverlays.tsx` around line 221), representative of the many blurred overlays in the chat chrome. Suggested directions (for maintainer decision): - Un-scope the reduced-effects `backdrop-filter: none` rule 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. - Make a paint-flattening lever available in Conversation mode / for shared overlay panels, not just Roleplay, or fold it into Reduce Ambient Animations & Effects. 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: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:53:42 +07:00
Author
Owner

@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-shadow in the character card's own <style> (it is the Character CSS example from docs/appearance/card-css-theming.md):

@keyframes grimoire-pulse {
  0%,100% { box-shadow: 0 0 12px ..., inset 0 0 18px ...; }
  50%     { box-shadow: 0 0 24px ..., inset 0 0 26px ...; }
}
[data-card-css] .mari-message-bubble { animation: grimoire-pulse 4s ease-in-out infinite; }

box-shadow is 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 any backdrop-filter panel layered over it re-blurs too.

The gap this adds to this issue: "Reduce Ambient Animations & Effects" and prefers-reduced-motion do 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: have html[data-marinara-reduced-effects="true"] (and reduced-motion) also freeze animations/transitions inside [data-card-css], for example:

html[data-marinara-reduced-effects="true"] [data-card-css] *,
html[data-marinara-reduced-effects="true"] [data-card-css] *::before,
html[data-marinara-reduced-effects="true"] [data-card-css] *::after {
  animation: none !important;
  transition: none !important;
}

(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 opacity on an overlay layer instead.

<!-- gh-comment-id:5251744491 --> @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-shadow` in the character card's own `<style>` (it is the Character CSS example from `docs/appearance/card-css-theming.md`): ```css @keyframes grimoire-pulse { 0%,100% { box-shadow: 0 0 12px ..., inset 0 0 18px ...; } 50% { box-shadow: 0 0 24px ..., inset 0 0 26px ...; } } [data-card-css] .mari-message-bubble { animation: grimoire-pulse 4s ease-in-out infinite; } ``` `box-shadow` is 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 any `backdrop-filter` panel layered over it re-blurs too. The gap this adds to this issue: **"Reduce Ambient Animations & Effects" and `prefers-reduced-motion` do 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: have `html[data-marinara-reduced-effects="true"]` (and reduced-motion) also freeze animations/transitions inside `[data-card-css]`, for example: ```css html[data-marinara-reduced-effects="true"] [data-card-css] *, html[data-marinara-reduced-effects="true"] [data-card-css] *::before, html[data-marinara-reduced-effects="true"] [data-card-css] *::after { animation: none !important; transition: none !important; } ``` (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 `opacity` on an overlay layer instead.
Author
Owner

@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.

<!-- gh-comment-id:5251789508 --> @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.
Author
Owner

@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.

<!-- gh-comment-id:5251867778 --> @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.
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#2715
No description provided.