New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debugging random slow CPU with rPI4 and 384x256 #1177
Comments
same display, same everything is running on the right in this demo: https://youtu.be/PbuB-QE-WjQ?t=103 , so the hangs are hard to pin, they happen mostly in some demos and not others, but not consistently. |
When the display hangs, I see:
I assume that because the driver is its own thread, I should be able to use 2 cores, or 200% CPU. I'm not too sure how to see if the cores are being thermally throttled, but it looks like they're not:
|
Dave, I'm not even sure what to say. Of course Pi is arm64... Also, as I said, no, I don't think it's a probably with the library. Please don't reply off topic further, or I'll just ignore the replies. |
ok, I'll admit that you gave me a good laugh, but that is the last time too. Plonk. |
The support group has finally been created, this has now been moved to |
I've been struggling with this one for a while. I don't think it's a problem with the library because the display refresh seems solid: https://www.youtube.com/watch?v=GUp3OilGPe8
However, my code randomly hangs and resumes and I'm pretty sure it's not an issue with the code, but with the CPU throttling, although I couldn't find anything obvious.
The code is single threaded, it generates a frame buffer, and then calls show() to copy it to this driver's canvas:
If you look at this video: https://www.youtube.com/watch?v=GUp3OilGPe8 , there are interesting bits:
I've put a heat sink on the CPU and GPU, maybe it's not good enough. I'm trying to find out if the cores are going into some massive throttling for reason unknown (0.5s to do the loop above is super super slow).
The same code works flawlessly on rPI3 with a smaller display (192x160).
I've spent some time on this, but have come up empty so far, and was wondering if anyone has any ideas of what I should consider. I am running raspbian which I know is not ideal but the hangs seem to happen to certain patterns and not others, so they seem to depend on what the code is computing and not some random time interval from an external cronjob or daemon.
The text was updated successfully, but these errors were encountered: