openframeworks / openframeworks/openFrameworks
TCPServer slow down when there's a client connected on RPi4/buster
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
I've made a post on the forum, but i'm reporting here too, because i think it's a bug.
With Raspberry Pi4/buster, when i create a TCPServer listening for incoming connections, when a client connect, the app slow down a lot (from 60FPS to ~20/25).
You can test this behaviour with the TCPServer example (https://github.com/openframeworks/openFrameworks/tree/patch-release/examples/communication/networkTcpServerExample)
Just run it, and connect (even from the same machine, with nc, or maybe (not tested) with the companion example TCPClient). So it's not a network issue.
Same app in other linux distros runs fine.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the examples/communication/networkTcpServerExample example and reproduce the FPS drop on Raspberry Pi 4 with Buster while connecting via nc or the TCPClient example. Compare the behavior with other Linux distributions and inspect the TCPServer connection path; done means identifying and fixing the slowdown without reducing the example's frame rate.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, raspberry-pi
- Domain
- embedded-iot, networking, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100