jakcy26
V2EX  ›  Electron

electron 新开独立窗口内存问题

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

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

    2 replies    2025-04-02 09:46:00 +08:00
    SingeeKing
        1
    SingeeKing  
    PRO
       Apr 1, 2025
    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
        2
    jakcy26  
    OP
       Apr 2, 2025
    想要的是开一个独立窗口,但是进程并不增加一个,应该如何实现?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   944 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 22:47 · PVG 06:47 · LAX 15:47 · JFK 18:47
    ♥ Do have faith in what you're doing.