【QUESTION】Is there a way to limit the CPU usage of one browserWindow?


#1

In our app, we use an invisible window to run a heavy computation task. When we start this window. The CPU usage will go quickly to 100% and cause noticeable frozen for main window on some old PCs. BTW, user only interact with the main window, they doesn’t know the invisible window’s existence.

We have tried to optimize the computation algorithm, but nothing really helpful.
We thought, maybe there is a way to limit the CPU usage of certain BrowserWindow, so we can make sure user didn’t notice what happened under the hook.
We have done some researches on the internet, but found nothing related.

Hope you guys can help, thanks.