2012-01-26, 19:54
ronie Wrote:out of interest, what happens when the script runs on your end?
does the gui freeze? do videos start to stutter?
imo, scripts running in the background shouldn't interfere with the user experience...but i'm not sure if that would be feasible.
The impact is on any new script starting, playlist populating or video starting. Watchlist performs a separate JSON call for each TV show in your library. In my case that is several hundred calls back to back. A lot of the other things I do with XBMC also require JSON or direct database calls.
No significant delay is present if I just play a video directly from the library. If, however, I use a script, the delay is considerable. I use PseudoTV heavily and see the impact very much there. Here is an example:
I watch a video from the library. It finishing triggers the watchlist script. The script takes about 2.5 minutes to run. If I try to use pseudotv before the watchlist script completes its JSON calls, the contention is considerable and adds as much as 30 seconds to the start of pseudotv.
The biggest impact of a background script is any foreground script. I also notice a delay in any database update (playcount and lastplayed).
And yes, I removed the influence of delay by drives spinning up, etc.