rpi-rgb-led-matrix icon indicating copy to clipboard operation
rpi-rgb-led-matrix copied to clipboard

Text and some pictures are one pixelish off

Open pbullion opened this issue 2 years ago • 9 comments

The bigger the font and full size pics are coming out like in this video where the top half is a pixel or two off and is kind of split.

This happen to anyone else? Or happens to know the root problem and or a fix?

Thanks!

https://user-images.githubusercontent.com/20978249/210891739-78c907c2-28a2-4bd5-9a0b-27f09fd3b471.MOV

pbullion avatar Jan 05 '23 22:01 pbullion

This looks a little bit like tearing. How do you output the text ? Are you using the text-scroller utility or wrote it yourself ? If the latter, are you using the frame-canvas and SwapOnVSync() ?

hzeller avatar Jan 05 '23 22:01 hzeller

Its using python bindings and yes the createframecanvas and the swaponvsync

pbullion avatar Jan 05 '23 22:01 pbullion

Do you see the same thing when the text is not scrolling ? Are you using bdf fonts with the DrawText() function or try to render it from some ttf with some other font renderer (which usually works badly for low resolution).

hzeller avatar Jan 05 '23 22:01 hzeller

im using the bdf fonts and drawtext(). not sure if this helps take a look

Screenshot 2023-01-05 at 8 45 08 PM

pbullion avatar Jan 06 '23 02:01 pbullion

FRC length might be causing this delay in top half and bottom half

anandrajgupta avatar Jan 06 '23 03:01 anandrajgupta

Something unrelated to the font issue: make sure to not create frame canvases in the loop. The offscreen_canvas = CreateFrameCanvas() line should be before the while True:. Otherwise you run out of memory soon.

hzeller avatar Jan 06 '23 03:01 hzeller

Also, the whole font-loading is probably also not something you want to do in every loop, but move it to the front,

hzeller avatar Jan 06 '23 04:01 hzeller

So i went back and just ran the straight runtext.py in the samples folder. still getting the same thing

Screenshot 2023-01-06 at 12 16 22 PM

https://user-images.githubusercontent.com/20978249/211073605-59b15d73-e0ac-4aa5-9b9b-86f7ca1bde95.MOV

https://user-images.githubusercontent.com/20978249/211074227-90a61b46-839a-49fd-b7a4-c0786ecbac13.mov

pbullion avatar Jan 06 '23 18:01 pbullion

@hzeller any idea on this? just running the runtext.py example straight from you is still showing the pixels off in the middle

pbullion avatar Sep 11 '23 19:09 pbullion