mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4631] [Feature]: "Reduce ambient animations & effects" toggle (consolidated switch for decorative animation/effect work) #2532
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#2532
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 5, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4631
Originally assigned to: @SpicyMarinara on GitHub.
What problem does this solve?
Two mobile users reported battery drain / phone heat while using Marinara. An investigation found the biggest causes are fixable bugs (filed separately: #4628, #4629, #4630) — but beyond those, the client has accumulated a large set of always-on ambient visual effects that each cost a little continuous rendering work while the screen is on, and collectively add up on phones:
infiniteCSS animations inglobals.css, several on paint-expensive properties (gradient cyclers:rgb-pulse-border20s,gradient-rotate4s,pastel-gradient-cycle25s; Game Mode ambience: fog shimmer, map marquee, party-pulse, campfire flicker, combat-pulse):rootCSS variables from a JS timer every 500 ms → app-wide style recalculation twice per second (already well-gated to visible+focused, but still a continuous cost when on)backdrop-filterblur (168 occurrences across 79 files) — GPU-expensive on mobileSome of these already have individual switches (
gameTextEffectsEnabledfrom #3801, streaming speed 100 = instant reveal, partialprefers-reduced-motioncoverage), but they're scattered, incomplete, and hard for a battery-conscious user to discover.Proposed solution
A single "Reduce ambient animations & effects" toggle (Settings → Appearance or Accessibility) that turns off the catalog above in one go:
streamingSpeed = 100code path — text still streams in per network chunk, just without the per-frame typewriter)prefers-reduced-motion(superset of today's partial coverage)On naming (deliberate): this should be advertised as exactly what it is — a reduced-animations/effects mode — not a "Low Battery Mode". Most of these effects already pause in background tabs, and the truly large battery items are the bugs filed separately. This toggle is a real but moderate screen-on reduction (plus an accessibility win); the label shouldn't promise a battery transformation it can't deliver on its own. A short settings description like "Turns off decorative animations and ambient effects. Reduces rendering work and can modestly extend battery life on phones." keeps it honest.
Alternatives considered
prefers-reduced-motiononly: coverage today is partial, users don't always want system-wide reduced motion, and it doesn't reach non-motion costs (blur, canvas, JS timers).Additional context
From the same investigation as #4628 / #4629 / #4630 (two mobile users: browser-client heat, Termux baseline drain). Prior related work: #3567/#3574 (PWA battery: weather + accent contention), #4198/#4199 (mobile input heat), #3801 (
gameTextEffectsEnabled). Roughly 2,160 commits landed since the #3574 battery pass, adding several new animated surfaces (dice, RPS clash, comic playback, Game ambience) that have never had a battery review — a single consolidated toggle also gives future animated features an obvious place to hook into.Template check