[PR #2143] [MERGED] fix(otome-forge): draw Otome's glows with less GPU work, and stop unseen animations (0.9.4) #2139

Closed
opened 2026-11-07 16:39:48 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/2143
Author: @SpicyMarinara
Created: 11/6/2026
Status: ✅ Merged
Merged: 11/7/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/otome-battery


📝 Commits (4)

  • cc24439 fix(otome-forge): use less battery while idle (0.9.4)
  • a78cb09 Merge remote-tracking branch 'origin/staging' into fix/otome-battery
  • da5ced3 fix(otome-forge): draw Otome's glows and glass with less GPU work (0.9.4)
  • 430d51e fix(otome-forge): keep the sprite cleanup's 30 s re-check (0.9.4)

📊 Changes

14 files changed (+150 additions, -52 deletions)

View changed files

➕ artifacts/otome-forge-0.9.4.zip (+0 -0)
📝 catalog/catalog.json (+6 -6)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+6 -6)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+6 -6)
📝 catalog/v3/notes.json (+6 -6)
📝 packages/otome-forge/CHANGELOG.md (+4 -0)
📝 packages/otome-forge/client.js (+31 -6)
📝 packages/otome-forge/manifest.json (+3 -3)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/theme/styles.ts (+31 -6)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/package-otome-forge-home.e2e.ts (+37 -0)
📝 tests/package-otome-forge-reader.e2e.ts (+7 -0)

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #2144

Refs #2141, which stays open: this is a first step and doesn't stop the heat.

Why this change

The maintainer's iPhone gets warm and the battery drains fast while playing Otome Hearth. Their decision on 2026-11-06: no visible changes. That means no idle-pausing of ambient animations, no gradients in place of the blurred glows, and no change to the Engine logo ("the issue is only in otome hearth"). This PR takes the work players can't see.

What changed

  • otome-forge 0.9.4 (rebuilt client.js, manifest, artifact and catalog entries).
  • Scene glows (styles.ts): each glow's blur(46px) moved onto a still ::before child, so the blur is drawn once and the 22 s / 28 s drift only moves the result. Before, the compositor redid the blur on every frame because it sat on the element that moves. The glow keeps a do-nothing blur(0px); without it, the Engine's 1-px header borders shifted by up to 5/255 as the layers changed.
  • The covered scene on Home: once Home's 0.56 s fade-in has finished, the stage scene under the room is set to opacity 0. During the fade-in it still shows through, as before. Opacity is used because visibility moved the header borders by 5/255.
  • Midnight's window light: the light layer no longer uses mix-blend-mode: screen. It is drawn first in its own group, over nothing, where screen and normal give the same result; a bright fake room confirmed it (≤2/255).
  • Hidden work paused: the scene's glows and twinkle under the reader hold still while the scene covers them, and keep moving while a memory banner leaves a strip in view. Home's stars hold still at dawn and by day, when the sky already sets them to opacity 0.
  • Tests: e2e assertions in tests/package-otome-forge-home.e2e.ts and -reader.e2e.ts for each pause and hide.
  • Reverted: round 1 also kept a side character's sprite cleanup forever (staleTime: Infinity). That broke the Wish suite's designed 30 s re-check ("stale refresh keeps the same cleaned outfit and its viewer, but a cleanup 404 hides it"), so it is back to CACHE_MS.
  • CHANGELOG 0.9.4.

Measurements (GPU compositor ms/s while idle)

Measured on mobile-chromium 390×844, the median of three 10 s windows. "Before" is 0.9.4's old rules restored on the same page.

Screen Before After Gap to the Engine Home, before → after
Engine Home (reference: doesn't heat the phone) 227 227 —
Home, Pearl (night) 636 467 409 → 240
Home, Midnight (night) 703 473 476 → 246
Reader, Pearl / Midnight 532 / 488 420 / 371 305 / 261 → 193 / 144
Wish 587 460 360 → 233
Wardrobe 568 440 341 → 213
Dates 542 423 315 → 196
  • Pixels: screenshots frozen at 0.3, 1.5, 9, 21.5 and 35 s, plus a set with the glows and window beam running, in both looks with the Engine chrome included. The largest difference is 2/255 per channel (Home 0–1). WebKit (iPhone 13 profile) is at most 2/255. Reduced motion and Reduce Ambient Animations & Effects still show no animation (≤2/255).
  • Frame rate: still 60 frames/s on every Otome screen, as on the Engine Home.
  • How much of the gap closes: this cuts the gap to the Engine Home by 37–52%, depending on the screen.
  • What remains is mostly the glass blur (backdrop-filter) over the moving glows. Nothing that keeps the pixels identical reduces it, and the maintainer declined visible changes.
  • On the phone: these are headless Chromium figures with CPU compositing standing in for the iPhone's GPU. Whether the phone runs cooler has to be checked on the device.

Tried and not kept (each failed the 2/255 bar or saved nothing):

  • the reader motes' drop-shadow on a still child (49/255);
  • hiding the reader's covered scene (9/255 at the bottom edge; its mood crossfade can't be detected in CSS);
  • the blend mode set to normal alone (29/255);
  • dropping the inner glass blur (40–52/255);
  • clipping oversized layers (layout shifts);
  • the beam, halo and aura blurs on still children (no saving).

Package and security impact

  • Affected package IDs: otome-forge
  • Engine compatibility impact: none
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Manually verify on Home, the reader, Wish and the Wardrobe, in both looks, that nothing looks or moves differently.
  • Manually verify on the iPhone whether a 10-minute session on Home and in the reader runs cooler than on 0.9.3.

Agent-run checks:

  • npm run test:otome-forge: 704 + 13 pass.
  • Review: one reviewer, with every finding verified. No defects found.
  • Strict typecheck, npm run check, locale keys, release notes and git diff --check: pass.
  • Browser suites package-otome-forge-home 44 passed and -reader 88 passed on desktop and mobile Chromium. After the sprite revert, the Wish suite's stale-refresh test and 16 reader and cleanup tests pass on desktop Chromium.
  • Idle probe runs on Chromium (normal, reduced motion, reduced effects) and WebKit.

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Agents/pull/2143 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 11/6/2026 **Status:** ✅ Merged **Merged:** 11/7/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/otome-battery` --- ### 📝 Commits (4) - [`cc24439`](https://github.com/Pasta-Devs/Marinara-Agents/commit/cc244395ff00d260bc4feb1a9d8c47aadd617f44) fix(otome-forge): use less battery while idle (0.9.4) - [`a78cb09`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a78cb099309f7119a6839e7107fc7e520c47ddfd) Merge remote-tracking branch 'origin/staging' into fix/otome-battery - [`da5ced3`](https://github.com/Pasta-Devs/Marinara-Agents/commit/da5ced39a9cbc53c63e1baa2b58301d4baf76fde) fix(otome-forge): draw Otome's glows and glass with less GPU work (0.9.4) - [`430d51e`](https://github.com/Pasta-Devs/Marinara-Agents/commit/430d51e899355abd93fc8e331126848f1b898a3d) fix(otome-forge): keep the sprite cleanup's 30 s re-check (0.9.4) ### 📊 Changes **14 files changed** (+150 additions, -52 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/otome-forge-0.9.4.zip` (+0 -0) 📝 `catalog/catalog.json` (+6 -6) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+6 -6) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+6 -6) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `packages/otome-forge/CHANGELOG.md` (+4 -0) 📝 `packages/otome-forge/client.js` (+31 -6) 📝 `packages/otome-forge/manifest.json` (+3 -3) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/theme/styles.ts` (+31 -6) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/package-otome-forge-home.e2e.ts` (+37 -0) 📝 `tests/package-otome-forge-reader.e2e.ts` (+7 -0) </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #2144 Refs #2141, which stays open: this is a first step and doesn't stop the heat. ## Why this change The maintainer's iPhone gets warm and the battery drains fast while playing Otome Hearth. Their decision on 2026-11-06: no visible changes. That means no idle-pausing of ambient animations, no gradients in place of the blurred glows, and no change to the Engine logo ("the issue is only in otome hearth"). This PR takes the work players can't see. ## What changed - **otome-forge 0.9.4** (rebuilt `client.js`, manifest, artifact and catalog entries). - **Scene glows** (`styles.ts`): each glow's `blur(46px)` moved onto a still `::before` child, so the blur is drawn once and the 22 s / 28 s drift only moves the result. Before, the compositor redid the blur on every frame because it sat on the element that moves. The glow keeps a do-nothing `blur(0px)`; without it, the Engine's 1-px header borders shifted by up to 5/255 as the layers changed. - **The covered scene on Home:** once Home's 0.56 s fade-in has finished, the stage scene under the room is set to opacity 0. During the fade-in it still shows through, as before. Opacity is used because `visibility` moved the header borders by 5/255. - **Midnight's window light:** the light layer no longer uses `mix-blend-mode: screen`. It is drawn first in its own group, over nothing, where screen and normal give the same result; a bright fake room confirmed it (≤2/255). - **Hidden work paused:** the scene's glows and twinkle under the reader hold still while the scene covers them, and keep moving while a memory banner leaves a strip in view. Home's stars hold still at dawn and by day, when the sky already sets them to opacity 0. - **Tests:** e2e assertions in `tests/package-otome-forge-home.e2e.ts` and `-reader.e2e.ts` for each pause and hide. - **Reverted:** round 1 also kept a side character's sprite cleanup forever (`staleTime: Infinity`). That broke the Wish suite's designed 30 s re-check ("stale refresh keeps the same cleaned outfit and its viewer, but a cleanup 404 hides it"), so it is back to `CACHE_MS`. - CHANGELOG 0.9.4. ## Measurements (GPU compositor ms/s while idle) Measured on mobile-chromium 390×844, the median of three 10 s windows. "Before" is 0.9.4's old rules restored on the same page. | Screen | Before | After | Gap to the Engine Home, before → after | |---|---|---|---| | **Engine Home (reference: doesn't heat the phone)** | 227 | 227 | — | | Home, Pearl (night) | 636 | 467 | 409 → 240 | | Home, Midnight (night) | 703 | 473 | 476 → 246 | | Reader, Pearl / Midnight | 532 / 488 | 420 / 371 | 305 / 261 → 193 / 144 | | Wish | 587 | 460 | 360 → 233 | | Wardrobe | 568 | 440 | 341 → 213 | | Dates | 542 | 423 | 315 → 196 | - **Pixels:** screenshots frozen at 0.3, 1.5, 9, 21.5 and 35 s, plus a set with the glows and window beam running, in both looks with the Engine chrome included. The largest difference is 2/255 per channel (Home 0–1). WebKit (iPhone 13 profile) is at most 2/255. Reduced motion and **Reduce Ambient Animations & Effects** still show no animation (≤2/255). - **Frame rate:** still 60 frames/s on every Otome screen, as on the Engine Home. - **How much of the gap closes:** this cuts the gap to the Engine Home by 37–52%, depending on the screen. - **What remains** is mostly the glass blur (`backdrop-filter`) over the moving glows. Nothing that keeps the pixels identical reduces it, and the maintainer declined visible changes. - **On the phone:** these are headless Chromium figures with CPU compositing standing in for the iPhone's GPU. Whether the phone runs cooler has to be checked on the device. **Tried and not kept** (each failed the 2/255 bar or saved nothing): - the reader motes' drop-shadow on a still child (49/255); - hiding the reader's covered scene (9/255 at the bottom edge; its mood crossfade can't be detected in CSS); - the blend mode set to normal alone (29/255); - dropping the inner glass blur (40–52/255); - clipping oversized layers (layout shifts); - the beam, halo and aura blurs on still children (no saving). ## Package and security impact - Affected package IDs: `otome-forge` - Engine compatibility impact: none - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none ## Validation <!-- These are human tasks. Never tick a box for a check that was not actually performed. --> - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Manually verify on Home, the reader, Wish and the Wardrobe, in both looks, that nothing looks or moves differently. - Manually verify on the iPhone whether a 10-minute session on Home and in the reader runs cooler than on 0.9.3. Agent-run checks: - `npm run test:otome-forge`: 704 + 13 pass. - Review: one reviewer, with every finding verified. No defects found. - Strict typecheck, `npm run check`, locale keys, release notes and `git diff --check`: pass. - Browser suites `package-otome-forge-home` 44 passed and `-reader` 88 passed on desktop and mobile Chromium. After the sprite revert, the Wish suite's stale-refresh test and 16 reader and cleanup tests pass on desktop Chromium. - Idle probe runs on Chromium (normal, reduced motion, reduced effects) and WebKit. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:39:48 +07:00
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#2139
No description provided.