Once rearchitected there was negligible performance hit. But context bridge etc... basically requires cloning all objects that need to be passed to the renderer/browser window from another context (the native module). If your message passing is frequent and objects are large this can have an adverse impact to performance.
Our video rendering implementation needed to copy frame buffers to the renderer. Doing this over context bridge would have been quite expensive.
A more ideal approach which the team is working on keeps the buffers on the GPU - which should solve all the performance woes and more.
Our video rendering implementation needed to copy frame buffers to the renderer. Doing this over context bridge would have been quite expensive.
A more ideal approach which the team is working on keeps the buffers on the GPU - which should solve all the performance woes and more.
More on this here: https://www.electronjs.org/docs/api/context-bridge