D
D
Drottarutarnum2021-06-28 06:52:12
C++ / C#
Drottarutarnum, 2021-06-28 06:52:12

How to pass image from backend to electron.net?

My application is essentially a graphical editor, but JS on the client obviously cannot cope with this.

And then the question arises, how to transfer the rendered image from the backend to the client?
The renderer itself is interactive and therefore it will not be possible to transfer data from

time to time. In the worst case, and a 4k monitor, a frame of at least 24Mb will come from the backend, you need at least 60fps and this is already 1.4Gb or about 11Gbps, the stream will go to the js canvas (which already sounds very painful )

Encode to PNG and then decode on the client also looks very

bad. Is there a good solution?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question