Kodi Community Forum
Numbers of script in Home.xml through <onload> - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: Numbers of script in Home.xml through <onload> (/showthread.php?tid=129473)



Numbers of script in Home.xml through <onload> - Balinus - 2012-04-20

Hello!

I'd like to know if loading many script ("only" 3 so far) is detrimental to the overall performance of the Home screen (or more broadly to the whole skin)? Here, it doesn't, but my machines are not at the lower end spectrum of performance. I'm more asking maybe if that slows down a lot for Atom based HTPC..?

The scripts are "next.aired", "watchlist" and "randomitems".

Another question... as a rule of thumb, what's your personal maximum?

Thanks!


RE: Numbers of script in Home.xml through <onload> - Martijn - 2012-04-20

In short yes it does decrease performance.


RE: Numbers of script in Home.xml through <onload> - Balinus - 2012-04-20

ok, thanks!

I wonder how much it decrease though. Do you have any rough idea?


RE: Numbers of script in Home.xml through <onload> - pecinko - 2012-04-20

It depends on device and type of DB used. You are fine with those 3 there should be no problem Smile


RE: Numbers of script in Home.xml through <onload> - Balinus - 2012-04-20

ok, thanks!


RE: Numbers of script in Home.xml through <onload> - butchabay - 2012-04-20

Better would be starting Watchlist Script in startup.xml and Not in home.xml


RE: Numbers of script in Home.xml through <onload> - pecinko - 2012-04-20

Would it work after skin switch if started from startup?


RE: Numbers of script in Home.xml through <onload> - Hitcher - 2012-04-20

(2012-04-20, 19:47)butchabay Wrote: Better would be starting Watchlist Script in startup.xml and Not in home.xml

Only problem with that is if the user has their HTPC on 24/7 and switches skins.


Re: RE: Numbers of script in Home.xml through <onload> - pieh - 2012-04-20

(2012-04-20, 20:08)Hitcher Wrote: Only problem with that is if the user has their HTPC on 24/7 and switches skins.
You can use builtin AlarmClock with loop and silent parameters and run watchlist every 2 hours - chech deatails at http://wiki.xbmc.org/index.php?title=List_of_built-in_functions




RE: Numbers of script in Home.xml through <onload> - butchabay - 2012-04-20

Doesn't matter, because once the script is started at startup, after watching an episode or stop a movie the script updates your db status. So if the script is running 24/7 shouldn't be a problem, or am i wrong?

Ok switching skin is a problem in this case, but to be honest it doesn't make sense switching skin every day Smile else restarting the skin isn't that hard.

At the end what you suggest home.xml or startup.xml ? Makes any difference loading it on home? I mean regarding performance ...

Thanx





RE: Numbers of script in Home.xml through <onload> - Martijn - 2012-04-20

(2012-04-20, 21:11)butchabay Wrote: Doesn't matter, because once the script is started at startup, after watching an episode or stop a movie the script updates your db status. So if the script is running 24/7 shouldn't be a problem, or am i wrong?
correct



RE: Numbers of script in Home.xml through <onload> - pecinko - 2012-04-20

Probably as long as you don't switch profiles?


RE: Numbers of script in Home.xml through <onload> - Balinus - 2012-04-21

I'm surprised that there's no "Profile.xml" startup type of xml file. Could be an nice addition to start default script for a given skin.