hiitiger / goverlay

DirectX hook and game overlay solution for Electron, Qt and CEF, just like discord/steam game overlay,inject any app to overlay in your game
Other
783 stars 108 forks source link

Hight CPU usage. #122

Closed CodigosPruebas367 closed 7 months ago

CodigosPruebas367 commented 7 months ago

Hello, I'm having issues with FPS in the overlay and excessive CPU usage when I add <iframe src="https://testufo.com" width="1200" height="1200"></iframe> to the osr.html file.

cpuusage

In the generated image that is displayed in the main window, every so often it also seems like everything is slowing down.

Is this normal, or do I need to add some configuration for it to use the GPU or something like that?

hiitiger commented 7 months ago

overlay needs to pass the browser's rendered content from electron to game (through share memory ) the page is updating every frame! so every frame, it needs to copy the memory twice

this will consume a lot cpu for sure