You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Firmware 1.4.0.8] Splash animation choppy on the SPI panel (17 frames in 2 s) #8
Context. With the DRM/KMS fallback from #7, SampleBoot's menu shows on a real MPC Sample with firmware 1.4.0.8 (DRM driver st7796s, SPI connector, 320×240).
Problem. The splash animation is choppy there. last-boot.log:
sampleboot-ui: splash dark: 17 frames, 2.04 s
The reveal (SPLASH_REVEAL, 0.8 s) is timed, so it still finishes on time, but in a few coarse steps instead of drawing line by line. The menu itself is fine: it only redraws on input or once a second.
Likely cause (not measured). On an SPI panel every page flip sends the whole 320×240 frame over SPI, and kms_present() waits for the previous flip before drawing the next frame. If one full-frame transfer takes about 50 ms, that allows only a few frames during the 0.8 s reveal.
Ideas
During the reveal, update only the rows that changed: DRM_IOCTL_MODE_DIRTYFB with a clip rectangle around the new band and the beam, so the panel driver only sends those lines.
Or don't wait for the flip to complete during the splash: skip a frame while a flip is still pending instead of blocking.
Log the time per flip (min/avg/max) once, so the cause can be confirmed on hardware.
Not a functional problem, only how the splash looks on 1.4.0.8.
Activity
Changelog: splash timings measured on a real MPC Sample (pxcm#8)
Merge pull request #9 from fabiomorena/fix/splash-partial-updates
SampleBoot 1.0.5: menu on a real MPC with firmware 1.4.0.8