-
Notifications
You must be signed in to change notification settings - Fork 67
High cpu usage #48
Comments
Yea it would be lovely to fix this @andyh2 offroad is the biggest CPU consumer in idle mode. When it's invisible, I don't understand why it's using any CPU at all. |
I looked at this briefly and I'm not sure this is an APK bug, or not much of one. Of the couple dozen threads running under
I didn't exhaustively monitor every single thread, only the ones with nonzero CPU time, but I saw no sign of SIGUSR2 (indicative of msgq activity) or other meaningful I/O. Also, the CPU burn keeps going even if
I don't think it's invisible. It's invisible to humans because the display is blank, but it's blank only because openpilot's You can see much of this verified in certain Options:
|
As an experiment, manually invoking Android sleep and wakeup keyevents seems to be totally effective in making surfaceflinger and offroad chill out and go to sleep, and return from sleep refreshed and ready to work again. This alone shouldn't be merged, because the NEOS 14 kernel and OP ui are still controlling framebuffer power so things can get out of sync, but hopefully we can find a path for Android and OP to cooperate in more traditional ways, while still preserving touch wakeup. NEOS Android doesn't seem to sleep/wakeup on the physical power button (not sure where/when that got disabled) so the usual power button key event doesn't work. Also, there are two versions of libjpeg installed on the system (Android vs termux) and the termux version doesn't have something Android is looking for, so right now you need to launch Command for
Command for
|
ai.comma.plus.offroad: High CPU usage around 5~10% all the time.
The text was updated successfully, but these errors were encountered: