都说 electron 新开一个独立窗口,渲染进程就会新增一个,导致内存飙升,但我看 vscode 新开一个独立窗口,渲染进程并不会新增一个。 有大神研究过吗? 怎么让打开独立窗口内存不增加那么多
![]() |
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. |
![]() |
2
jakcy26 OP 想要的是开一个独立窗口,但是进程并不增加一个,应该如何实现?
|