There is a nasty issue with Krypton that make Pythons script run super slow (50x). I described it here: Issues · xbmc/xbmc · GitHub
The fix could be simple by bumping the GUI sleep time to higher values. I don’t have a setup for compiling OSMC (I have one for Kodi running on Windows). What is the fastest way of verifying whether this fix works for OSMC?
For clarification. Here are some benchmarks on my rPi running OSMC with Krypton:
ncalls tottime cumtime
1168 3.951 3.951 {method 'setArt' of 'xbmcgui.ListItem' objects}
584 0.655 0.655 {method 'setContentLookup' of 'xbmcgui.ListItem' objects}
584 0.227 0.227 {method 'setIconImage' of 'xbmcgui.ListItem' objects}
584 2.142 2.142 {method 'setInfo' of 'xbmcgui.ListItem' objects}
584 3.620 3.620 {method 'setLabel' of 'xbmcgui.ListItem' objects}
584 0.006 0.006 {method 'setLabel2' of 'xbmcgui.ListItem' objects}
584 14.035 14.035 {method 'addContextMenuItems' of 'xbmcgui.ListItem' objects}
Version this on Jarvis:
ncalls tottime cumtime
1168 0.049 0.049 {method 'setArt' of 'xbmcgui.ListItem' objects}
584 0.009 0.009 {method 'setContentLookup' of 'xbmcgui.ListItem' objects}
584 0.005 0.005 {method 'setIconImage' of 'xbmcgui.ListItem' objects}
584 0.049 0.049 {method 'setInfo' of 'xbmcgui.ListItem' objects}
584 0.028 0.028 {method 'setLabel' of 'xbmcgui.ListItem' objects}
584 0.006 0.006 {method 'setLabel2' of 'xbmcgui.ListItem' objects}
584 0.210 0.210 {method 'addContextMenuItems' of 'xbmcgui.ListItem' objects}
I managed to get the first build to complete (2,5 hours). Now a second build seems to start all over, do I need to pass another parameter to the “make rbp2” statement to make it not start all over?
sudo chroot /opt/osmc-tc/armv7-toolchain-osmc
cd /mnt/package/mediacenter-osmc/src/xbmc-7781e47f997b2b100957c0eee2622df7346eb0e5
root@osmc:/mnt/package/mediacenter-osmc/src/xbmc-7781e47f997b2b100957c0eee2622df7346eb0e5# make rbp2
make: *** No rule to make target 'rbp2'. Stop.
Same problem here. I’m using pelisalacarta addon (it’s for latin/spanish media content) and the loading of lists takes toooo long. I hope the PR with the patch is accepted…