2024-06-19, 16:25
(2024-06-19, 16:07)amasephy Wrote: I just loaded in another recursive slideshow with around 9,000 photos and the bouncing just never ended.Let me explain in more detail. Let's say there are 10k pictures to load into the playlist. Kodi does not wait until all is loaded into the playlist before signaling an update occurred (possibly there is also a timer involved). Assume this happens each 100 pictures. So, each 100th picture Kodi signals a playlist update. The App does not know, if this is the final one or not. So the App requests Kodi to share the content of the playlist, which is at this time 100 entries. Kodi now needs to respond to this request while it is still filling the playlist with the residual 9100 pictures. This happens each 100 pictures and the amount of requested playlist details increases each time (100, 200, 300, ..., 9900, 10000). A lot of data is moved around for nothing.
So the one with 5,000 took a few minutes for the bouncing to stop but seems if it’s too big then it just chokes?
"Debouncing" the signaling is just letting the App wait for the assumed last signal and only request the content then. Last signal is assumed to be the one which was not "replaced" by a new signal within 0.2 seconds (the debounce timeout).
I will try to find a Kodi member which is more into playlist handling to see, if there is any other signal to listen to (ideally when playlist updates finished).