mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-31 19:16:29 +00:00
perf(desktop): let the hidden link-title window throttle
It loads arbitrary user-linked pages offscreen; unthrottled, a heavy page burns full CPU for the window's whole lifetime. Title resolution rides load events and main-process timers, which throttling doesn't touch.
This commit is contained in:
parent
8ccb4c2cee
commit
be7c4b8fe7
1 changed files with 7 additions and 1 deletions
|
|
@ -9,7 +9,13 @@ export function linkTitleWindowOptions(partitionSession) {
|
|||
width: 1280,
|
||||
height: 800,
|
||||
webPreferences: {
|
||||
backgroundThrottling: false,
|
||||
// Deliberately throttled: this hidden window loads arbitrary user-linked
|
||||
// pages, and an unthrottled heavy page burns full CPU for the window's
|
||||
// whole lifetime. Title resolution rides load events
|
||||
// (page-title-updated / did-finish-load) plus main-process timers, none
|
||||
// of which the renderer clamp touches — hidden-page throttling only
|
||||
// slows the page's own timer-driven JS, and the grace window already
|
||||
// absorbs that.
|
||||
contextIsolation: true,
|
||||
javascript: true,
|
||||
nodeIntegration: false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue