Skip to content

Instantly share code, notes, and snippets.

@notro
Created June 9, 2021 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save notro/4d94256ac1f9f482995d96230a318a5c to your computer and use it in GitHub Desktop.
Save notro/4d94256ac1f9f482995d96230a318a5c to your computer and use it in GitHub Desktop.
GUD perf Pi Zero
Host: Raspberry Pi 4
Device: Raspberry Pi Zero
SPI speed: 66.6MHz (spi_hz=70000000 clk_hz=400000000 => cdiv=6 => effective_speed_hz=66666666)
(see bcm2835_spi_transfer_one() for details)
pi@pi4:~ $ sudo python3 ~/work/projects/notro-gud/tests/perf.py -f RGB565 -i 50
Iterations: 50
320x240-0@RGB565
No compress : 134.3 > 25.4 > 24.2 fps (39.339 ms)
Compress x0: 63.1 > 25.4 > 24.8 fps (39.330 ms)
Compress x1: 129.6 > 25.2 > 24.4 fps (39.750 ms)
Compress x2: 175.9 > 24.9 > 24.2 fps (40.190 ms)
Compress x3: 194.7 > 24.8 > 24.1 fps (40.290 ms)
Compress x4: 216.4 > 24.8 > 24.2 fps (40.364 ms)
Compress x8: 225.4 > 24.7 > 24.0 fps (40.486 ms)
Compress x16: 238.2 > 24.7 > 24.0 fps (40.533 ms)
# modetest -M mipi_dbi_drv -s 31:320x240@RG16 -v
setting mode 320x240-0.01Hz on connectors 31, crtc 34
failed to set gamma: Function not implemented
freq: 25.61Hz
freq: 25.50Hz
----
dtoverlay=pitft35-resistive,speed=70000000
pi@pi4:~ $ sudo python3 ~/work/projects/notro-gud/tests/perf.py -f RGB565 -i 50
Iterations: 50
320x480-0@RGB565
No compress : 88.5 > 12.9 > 12.3 fps (77.378 ms)
Compress x0: 33.3 > 12.9 > 12.7 fps (77.318 ms)
Compress x1: 32.4 > 12.8 > 12.1 fps (78.412 ms)
Compress x2: 106.7 > 12.6 > 12.3 fps (79.169 ms)
Compress x3: 114.3 > 12.6 > 12.3 fps (79.488 ms)
Compress x4: 128.5 > 12.5 > 12.2 fps (79.865 ms)
Compress x8: 135.4 > 12.5 > 12.2 fps (79.927 ms)
Compress x16: 144.5 > 12.5 > 12.2 fps (80.077 ms)
# modetest -M hx8357d -s 31:320x480@RG16 -v
setting mode 320x480-0.01Hz on connectors 31, crtc 34
failed to set gamma: Function not implemented
freq: 13.04Hz
freq: 12.97Hz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment