Project

General

Profile

Actions

Feature #1027

closed

Bump fps on RPi4 on TFTs

Added by Hammel 8 months ago. Updated 8 months ago.

Status:
Closed
Priority:
Immediate
Assignee:
Target version:
Start date:
30 Aug 2023
Due date:
30 Aug 2023
% Done:

100%

Estimated time:
Severity:
01 - Critical

Description

The low fps on a RPi4/TFT could probably be bumped up since it has more memory and faster throughput.


Related issues

Follows lcdshow - Feature #1030: Switch to using include files for lcdshow hdmi vs tft configurationClosedHammel29 Aug 2023

Actions
Actions #1

Updated by Hammel 8 months ago

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.

Actions #2

Updated by Hammel 8 months ago

  • 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.

Actions #3

Updated by Hammel 8 months ago

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!

Actions #4

Updated by Hammel 8 months ago

  • Severity changed from 02 - High to 01 - Critical
Actions #5

Updated by Hammel 8 months ago

  • 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
Actions #6

Updated by Hammel 8 months ago

  • % 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.

Actions #7

Updated by Hammel 8 months ago

  • 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.

Actions

Also available in: Atom PDF