V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
jakcy26
V2EX  ›  Electron

electron 新开独立窗口内存问题

  •  
  •   jakcy26 · 1 天前 · 359 次点击

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

    2 条回复    2025-04-02 09:46:00 +08:00
    SingeeKing
        1
    SingeeKing  
       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
        2
    jakcy26  
    OP
       18 小时 18 分钟前
    想要的是开一个独立窗口,但是进程并不增加一个,应该如何实现?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   963 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 19ms · UTC 20:04 · PVG 04:04 · LAX 13:04 · JFK 16:04
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.