Skip to content

Instantly share code, notes, and snippets.

@notro
Created June 9, 2021 14:41
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/1fbd5df09c71261d0d7773a755ac9ee8 to your computer and use it in GitHub Desktop.
Save notro/1fbd5df09c71261d0d7773a755ac9ee8 to your computer and use it in GitHub Desktop.
GUD perf Pi 4
Host: Raspberry Pi 4
Device: Raspberry Pi 4
SPI speed: 62.5MHz (spi_hz=70000000 clk_hz=500000000 => cdiv=8 => effective_speed_hz=62500000)
(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 : 103.2 > 43.1 > 40.8 fps (23.195 ms)
Compress x0: 101.4 > 43.1 > 40.7 fps (23.181 ms)
Compress x1: 101.2 > 43.1 > 41.5 fps (23.228 ms)
Compress x2: 133.9 > 43.2 > 41.6 fps (23.164 ms)
Compress x3: 142.1 > 43.2 > 41.6 fps (23.173 ms)
Compress x4: 157.6 > 43.1 > 41.6 fps (23.198 ms)
Compress x8: 173.3 > 43.1 > 42.1 fps (23.210 ms)
Compress x16: 181.8 > 43.1 > 41.5 fps (23.219 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: 42.80Hz
freq: 42.81Hz
----
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 : 62.6 > 20.3 > 19.6 fps (49.291 ms)
Compress x0: 56.2 > 20.3 > 19.0 fps (49.194 ms)
Compress x1: 52.0 > 20.3 > 19.5 fps (49.263 ms)
Compress x2: 75.9 > 21.0 > 18.8 fps (47.571 ms)
Compress x3: 87.2 > 20.4 > 18.7 fps (49.105 ms)
Compress x4: 91.9 > 20.4 > 19.6 fps (49.000 ms)
Compress x8: 106.8 > 20.4 > 19.3 fps (49.035 ms)
Compress x16: 114.2 > 20.4 > 17.8 fps (49.093 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: 21.63Hz
freq: 21.58Hz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment