toyota-connected / ivi-homescreen-plugins

A collection of useful plugins maintained by the Toyota Connected North America team
Other
1 stars 2 forks source link

When drawing the map of the Japanese navigation function, the CPU usage rate of the homescreen increases significantly. #53

Open tomohiroshohi-main opened 4 days ago

tomohiroshohi-main commented 4 days ago

Improvement points

Do you know why the CPU load is increasing?
Is there any way to improve it?

summary

When drawing the map of the Japanese navigation function, the CPU usage rate of the homescreen increases significantly.

Detail

  1. Set Navi on the Home screen.
  2. reboot
  3. Transition from home to navigation function
  4. Transition from navigation to Apps function When transitioning from home to the navigation function, the CPU is high because both navigations are present, but when transitioning from the navigation to the Apps function, the CPU usage rate drops significantly, perhaps because the rendering process for the navigation disappears.
    Additionally, if processing becomes heavy on the navrender side, such as displaying POIs on the navigation, the CPU usage of homescreen will also increase.

(video removed)

jwinarske commented 3 days ago

@tomohiroshohi-main

  1. What version of homescreen? v1 or v2?
  2. What navi interface version are you using v1 or v2?
  3. In high consumption case are you using Texture or Surface? Texture rendering is handled in the main loop which is fixed at 60 FPS. The Surface rendering is handled by the compositor frame callback. When a surface is occluded, it stops rendering. For a texture the render loop is called until the map instance is torn down; regardless if it's on the screen. Using textures will increase CPU consumption.
jwinarske commented 3 days ago

@tomohiroshohi-main also note this is a public repo