Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5827

Python • Re: Getting more out of the CPU when running python project

$
0
0
Just a few quick tests to check how the network and switching to ssh impacted the fps:

Switching to ssh and Vcxsrv for X-forwarding took the fps down to about 7 fps, so about 50% of the fps on the VNC remote connection.

Switching to the 5G from my phone (which I presume is faster than my wifi?) gave me about the same fps as before.
This all sounds quite horrible.

If you want to watch video from some camera, you should set up a direct server from camera device to the client device. That is the basic principle for efficient video streaming.

If you display the camera contents to the Pi display and from there transfer that screen contents via X11 or VNC to the client device, you are on the wrong track. I know people do this, the fact that RPT has always had good VNC makes them go into that trap.

You should really re-read the basics of video streaming. You can easily get 1080p30 if you do the correct architecture.

Run the Pi in multi-user mode, not graphical. And don't run rpi-cam with preview window, you won't be able if you run in multi-user mode by default as it has only text console.

Statistics: Posted by redvli — Fri Aug 23, 2024 8:36 pm



Viewing all articles
Browse latest Browse all 5827

Trending Articles