[GH-ISSUE #2141] Otome Hearth: the iPhone gets warm and the battery drains fast while playing #1936

Closed
opened 2026-11-07 16:37:47 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @SpicyMarinara on GitHub (Nov 6, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/2141

Originally assigned to: @SpicyMarinara on GitHub.

What happens

On an iPhone, playing Otome Hearth makes the phone warm and drains the battery fast. The maintainer reported it on 2026-11-06.

  • Marinara Engine 2.5.2, installed as a Home Screen app (standalone)
  • iOS 18.7, Safari WebKit
  • Server: Linux x64

Expected

Otome Hearth should do almost no work while the player is reading or idle on a screen. Animation should run only while something is visibly moving, and polling only while something is pending.

Suspects to measure first

On each screen, while idle:

  • requestAnimationFrame loops that never stop: Home's parallax and breathing, the Claw Machine's frame loop, the reader;
  • infinite CSS animations: the starfield, pulse and glow effects;
  • backdrop-filter glass layers over animated content, which are expensive on iOS;
  • refetchInterval polling that never stops;
  • audio contexts or music left running when nothing plays;
  • a wake lock.

Package

otome-forge (Otome Hearth)

Originally created by @SpicyMarinara on GitHub (Nov 6, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/2141 Originally assigned to: @SpicyMarinara on GitHub. ### What happens On an iPhone, playing Otome Hearth makes the phone warm and drains the battery fast. The maintainer reported it on 2026-11-06. - Marinara Engine 2.5.2, installed as a Home Screen app (standalone) - iOS 18.7, Safari WebKit - Server: Linux x64 ### Expected Otome Hearth should do almost no work while the player is reading or idle on a screen. Animation should run only while something is visibly moving, and polling only while something is pending. ### Suspects to measure first On each screen, while idle: - `requestAnimationFrame` loops that never stop: Home's parallax and breathing, the Claw Machine's frame loop, the reader; - infinite CSS animations: the starfield, pulse and glow effects; - `backdrop-filter` glass layers over animated content, which are expensive on iOS; - `refetchInterval` polling that never stops; - audio contexts or music left running when nothing plays; - a wake lock. ### Package otome-forge (Otome Hearth)
Author
Owner

@SpicyMarinara commented on GitHub (Nov 6, 2026):

Maintainer decision (2026-11-06): no visible changes. Ambient animations keep running as they are: no pausing after idle, no swapping the blurred glows for gradients, and no change to the Engine logo, since only Otome Hearth heats the phone.

What the measurements show: the Engine's own Home redraws at 60 fps too, yet it does not heat the phone. So the problem is not the frame rate but what each frame costs in Otome. Otome stacks backdrop-filter glass panels (up to 77% of the screen on Wish, the Shop and the Wardrobe) over moving content, has large filter: blur() layers, and composites 15–18 screens' worth of layers on Home. The Engine Home has none of that. The fixes target that cost, with nothing visible or audible changing.

<!-- gh-comment-id:6692426159 --> @SpicyMarinara commented on GitHub (Nov 6, 2026): Maintainer decision (2026-11-06): no visible changes. Ambient animations keep running as they are: no pausing after idle, no swapping the blurred glows for gradients, and no change to the Engine logo, since only Otome Hearth heats the phone. What the measurements show: the Engine's own Home redraws at 60 fps too, yet it does not heat the phone. So the problem is not the frame rate but what each frame costs in Otome. Otome stacks `backdrop-filter` glass panels (up to 77% of the screen on Wish, the Shop and the Wardrobe) over moving content, has large `filter: blur()` layers, and composites 15–18 screens' worth of layers on Home. The Engine Home has none of that. The fixes target that cost, with nothing visible or audible changing.
Author
Owner

@SpicyMarinara commented on GitHub (Nov 7, 2026):

#2143 (Otome Hearth 0.9.4) is merged into staging as 35601a2235. It's a first step, with no visible change:

  • The scene glows' blur is drawn once instead of every frame.
  • Hidden scenes pause behind Home's room and the reader.
  • Home's covered scene stops drawing after the fade-in.
  • Midnight's no-op blend mode is gone.

In headless Chromium this cuts compositor time over the Engine Home by 37–52% depending on the screen. What remains is mostly the glass blur over moving glows, which can't be reduced without a visible change.

Keeping this open until it's checked on the iPhone with 0.9.4 installed.

<!-- gh-comment-id:6699726512 --> @SpicyMarinara commented on GitHub (Nov 7, 2026): #2143 (Otome Hearth 0.9.4) is merged into staging as 35601a2235. It's a first step, with no visible change: - The scene glows' blur is drawn once instead of every frame. - Hidden scenes pause behind Home's room and the reader. - Home's covered scene stops drawing after the fade-in. - Midnight's no-op blend mode is gone. In headless Chromium this cuts compositor time over the Engine Home by 37–52% depending on the screen. What remains is mostly the glass blur over moving glows, which can't be reduced without a visible change. Keeping this open until it's checked on the iPhone with 0.9.4 installed.
Author
Owner

@SpicyMarinara commented on GitHub (Nov 7, 2026):

Closing with Otome Hearth 0.9.4 (#2143, merged into staging):

  • The scene glows are blurred once instead of on every frame.
  • Hidden scenes stop drawing behind Home and the reader.
  • Midnight's window light takes less work.

In headless Chromium this cut Otome's extra compositor time over the Engine Home by 37–52%, depending on the screen. Nothing looks different.

What's left is mostly the blurred glass over the moving glows. It can't be reduced without a visible change, and you chose to keep the look as it is. If the iPhone still runs warm on 0.9.4, reopen this and say which screens, and I'll measure them first.

<!-- gh-comment-id:6706759074 --> @SpicyMarinara commented on GitHub (Nov 7, 2026): Closing with Otome Hearth 0.9.4 (#2143, merged into staging): - The scene glows are blurred once instead of on every frame. - Hidden scenes stop drawing behind Home and the reader. - Midnight's window light takes less work. In headless Chromium this cut Otome's extra compositor time over the Engine Home by 37–52%, depending on the screen. Nothing looks different. What's left is mostly the blurred glass over the moving glows. It can't be reduced without a visible change, and you chose to keep the look as it is. If the iPhone still runs warm on 0.9.4, reopen this and say which screens, and I'll measure them first.
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-Agents#1936
No description provided.