GPU accelerated VS Software output device
yafp opened this issue · comments
should test what my current setting is & which performs better
source: https://www.electronjs.org/docs/tutorial/offscreen-rendering
GPU accelerated
GPU accelerated rendering means that the GPU is used for composition. Because of that the frame has to be copied from the GPU which requires more performance, thus this mode is quite a bit slower than the other one. The benefit of this mode is that WebGL and 3D CSS animations are supported.
Software output device
This mode uses a software output device for rendering in the CPU, so the frame generation is much faster, thus this mode is preferred over the GPU accelerated one.
To enable this mode GPU acceleration has to be disabled by calling the app.disableHardwareAcceleration() API.
discussion: electron/electron#13368
Added new command line switch
--gpu
to enable gpu acceleration.
If it is not set - the app is executing: