Quantcast
Viewing all articles
Browse latest Browse all 5381

Camera board • Re: Performance hit in Desktop Environment

I gave your script a try and mostly found that it ran ok at ~17.85ms between frames until I launched a web browser. Many other applications seemed largely OK (obviously it will depend), but refreshing or loading a web page caused complete havoc. This was a problem even with just one camera, actually.

Some things that I found helped:

1. Allocate more buffers. For example, set "buffer_count=16" in your configurations.
2. Don't print out the frame times unless larger than (say) 20ms. Spamming the console over 100 times a second really doesn't help!
3. I also found that running the Python process with "nice -n -20" seemed beneficial.

In fact, I found I was getting very few frame drops when I did all these 3 things. But the general point is clearly still valid, and something we may need to investigate further.

Statistics: Posted by therealdavidp — Wed Jan 03, 2024 10:07 am



Viewing all articles
Browse latest Browse all 5381

Trending Articles