jakcy26
V2EX  ›  Electron

electron 新开独立窗口内存问题

  •  
  •   jakcy26 · Apr 1, 2025 · 4603 views
    This topic created in 593 days ago, the information mentioned may be changed or developed.

    都说 electron 新开一个独立窗口,渲染进程就会新增一个,导致内存飙升,但我看 vscode 新开一个独立窗口,渲染进程并不会新增一个。 有大神研究过吗? 怎么让打开独立窗口内存不增加那么多

    2 replies  •  2025-04-02 09:46:00 +08:00
    SingeeKing
    SingeeKing
    Apr 1, 2025
    1
    https://www.electronjs.org/docs/latest/api/window-open

    For same-origin content, the new window is created within the same process, enabling the parent to access the child window directly.
    jakcy26
    jakcy26
    OP
    Apr 2, 2025
    2
    想要的是开一个独立窗口,但是进程并不增加一个,应该如何实现?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   866 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 21:30 · PVG 05:30 · LAX 13:30 · JFK 16:30
    ♥ Do have faith in what you're doing.