[PR #8903] [MERGED] perf(client): stop accent ticks from freezing desktop pages #8872

Closed
opened 2026-11-07 17:40:23 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8903
Author: @Gunterlie
Created: 11/6/2026
Status: ✅ Merged
Merged: 11/6/2026
Merged by: @Gunterlie

Base: staging ← Head: perf/feel-1-freezes


📝 Commits (3)

  • 1982d86 perf(client): stop accent ticks from freezing desktop pages
  • f8dc497 fix(client): keep size transitions and surface accent tokens under accent animation
  • 69cea6b fix(client): clear surface accent tokens when the custom accent is emptied during animation

📊 Changes

4 files changed (+30 additions, -34 deletions)

View changed files

📝 packages/client/src/App.tsx (+16 -20)
📝 packages/client/src/components/chat/ConversationMessage.tsx (+3 -3)
📝 packages/client/src/components/chat/ConversationView.tsx (+3 -3)
📝 packages/client/src/styles/globals.css (+8 -8)

📄 Description

Why

Desktop users get Accent Pulse by default since #6029. The CSS rule that stops colour transitions from restarting on every accent tick ran only on coarse pointers (phones). On desktop, every 500 ms tick started about 2,800 colour transitions when the Characters panel was open (91 rows × action buttons and badges). The main thread never went idle: about 600 ms of style work per second, long tasks up to 880 ms, and at 4× CPU throttle the page did not respond to clicks at all.

This is the first PR of the "engine feels fast" series (one branch per step, landed in order). kolacheee found the freeze on ui/kolacheee (a9c6b2da0a) — thank you.

Part of #8904.

What changed

  • The accent-animation transition guard now applies on every pointer type, not only coarse pointers.
  • RGB accent ticks write only the foreground accent tokens, the same as Pulse. Surface, sidebar and glow tokens no longer change twice a second.
  • ConversationView passes onPeekPrompt to message rows as a stable callback, so the row memo holds when the view renders.

Measurements

dev-marinara, 3,000 cards, 1,000-message chats, Chromium via CDP. Numbers below come from Performance.getMetrics and long-task observers.

Before/after table follows in a comment once the after run finishes.

Manual verification

  • Manually verify Accent Pulse and RGB still animate the accent colour on desktop (top bar, buttons, focus rings).
  • Manually verify hover colour transitions still feel right when accent animation is off.
  • Manually verify the Characters panel scrolls smoothly with Accent Pulse on.
  • Manually verify "Peek prompt" still opens for the right message in conversation and roleplay chats.

🔄 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-Engine/pull/8903 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 11/6/2026 **Status:** ✅ Merged **Merged:** 11/6/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `perf/feel-1-freezes` --- ### 📝 Commits (3) - [`1982d86`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1982d86f9f47881b6c2a354d4a672e6bd5414a9e) perf(client): stop accent ticks from freezing desktop pages - [`f8dc497`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f8dc4973ad14b928d002cfd5be5d94f6ad43bb48) fix(client): keep size transitions and surface accent tokens under accent animation - [`69cea6b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/69cea6baf287b3674bc499f22f2826713293d7ee) fix(client): clear surface accent tokens when the custom accent is emptied during animation ### 📊 Changes **4 files changed** (+30 additions, -34 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/App.tsx` (+16 -20) 📝 `packages/client/src/components/chat/ConversationMessage.tsx` (+3 -3) 📝 `packages/client/src/components/chat/ConversationView.tsx` (+3 -3) 📝 `packages/client/src/styles/globals.css` (+8 -8) </details> ### 📄 Description ## Why Desktop users get Accent Pulse by default since #6029. The CSS rule that stops colour transitions from restarting on every accent tick ran only on coarse pointers (phones). On desktop, every 500 ms tick started about 2,800 colour transitions when the Characters panel was open (91 rows × action buttons and badges). The main thread never went idle: about 600 ms of style work per second, long tasks up to 880 ms, and at 4× CPU throttle the page did not respond to clicks at all. This is the first PR of the "engine feels fast" series (one branch per step, landed in order). kolacheee found the freeze on `ui/kolacheee` (a9c6b2da0a) — thank you. Part of #8904. ## What changed - The accent-animation transition guard now applies on every pointer type, not only coarse pointers. - RGB accent ticks write only the foreground accent tokens, the same as Pulse. Surface, sidebar and glow tokens no longer change twice a second. - `ConversationView` passes `onPeekPrompt` to message rows as a stable callback, so the row `memo` holds when the view renders. ## Measurements dev-marinara, 3,000 cards, 1,000-message chats, Chromium via CDP. Numbers below come from `Performance.getMetrics` and long-task observers. _Before/after table follows in a comment once the after run finishes._ ## Manual verification - [ ] Manually verify Accent Pulse and RGB still animate the accent colour on desktop (top bar, buttons, focus rings). - [ ] Manually verify hover colour transitions still feel right when accent animation is off. - [ ] Manually verify the Characters panel scrolls smoothly with Accent Pulse on. - [ ] Manually verify "Peek prompt" still opens for the right message in conversation and roleplay chats. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 17:40:23 +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-Engine#8872
No description provided.