Feature #1027
closed
Added by Hammel about 1 year ago.
Updated about 1 year ago.
Description
The low fps on a RPi4/TFT could probably be bumped up since it has more memory and faster throughput.
Manually tested bumping the frame rate on the RPi4 running pisentry but it didn't matter. The TFT doesn't appear to be able to keep up with the video.
Need to research how to get better throughput on the TFT.
- Status changed from New to In Progress
- % Done changed from 0 to 50
Found this config on Adafruit and testing on an RPi4.
Adding the following to the config.txt and bumping the webcam config for piboxd and the omxplayer config for picam to 60fps I get MUCH better display on the TFT.
start_x=1
gpu_mem=128
dtoverlay=tft35a:rotate=90,speed=80000000,fps=60
See https://github.com/ArnostDvorak/Orange-PI-PC2-overlay/blob/main/tft35a-overlay.dts
The first two are already in there, but disabled. The dtoverlay is updated with the speed and fps settings.
The result is that the webcam/TFT keeps up just fine with motion, though there is a bit of blur. At least now it's not super-jumpy.
Need to integrate this into the build for pisentry and verify what happens if we run this on a RPi3.
Side note: These changes also speed up launcher considerably. Using a keyboard to move from left to right the icon highlight redraw is nearly instantaneous - you no longer see it get redrawn!
- Severity changed from 02 - High to 01 - Critical
- Due date set to 30 Aug 2023
- Start date changed from 26 Aug 2023 to 30 Aug 2023
- Follows Feature #1030: Switch to using include files for lcdshow hdmi vs tft configuration added
- % Done changed from 50 to 90
Frame rate bumped in picam.cfg.
Config options updated in lcdshow's LCD35 config.
Config.txt updated in dev system build.
All changes tested on hardware and working on RPi4.
Changes committed and pushed so hw test could be done via normal install process.
Need to verify impact of changes on RPi3 using TFT.
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
Pisentry verified working as good on the RPi3 and on the RPi4.
Side note: with the RPi4 the HDMI and TFT work at the same time with the webcam. Didn't expect that, but it's kind of a nice side affect. Both displays stay in sync with 30fps.
For grins, I bumped mjpeg-streamer to 60fps and picam/omxplayer to 60fps. The latter works but the former does not. Leaving mjpeg-streamer at 30fps and picam/omxplayer at 60fps doesn't have a huge impact. So 30fps seems about the best I'll do on hardware displays.
All changes committed and pushed.
Closing issue.
Also available in: Atom
PDF