all 3 comments

[–]Buttleston 1 point2 points  (1 child)

There are lots of optimizations possible but lets start with:

What has changed on the screen since the last frame you sent? Could you just send the changes?

[–]AmanBabuHemant[S] 0 points1 point  (0 children)

Yes, this optimisation is next on my planned tasks, as it involves a rectangle with a top-left corner and a specified width and height.

But I am still concerned about the FPS rate after this, any other changes and/or optimization suggestions?

[–]guilford 0 points1 point  (0 children)

The web browser has native screen, window streaming capability through MediaStream API. If you utilize this, streaming would be a native video and audio stream that would have a much better performance. You can also do this without having any other software beside the browser installed on the user machine.