Posts: 245
Joined: Nov 2012
Reputation:
7
Wimpie
Senior Member
Posts: 245
2015-09-29, 07:58
(This post was last modified: 2015-09-29, 08:25 by Wimpie.)
I'm not 100% sure in Kodi, but in other languages those same named functions do the following:
Normally, when you draw something on the Kodi canvas, each time you paint something, it gets painted and Kodi updates the canvas (what the user sees).
eg:
- draw some text in bottom left corner, then update canvas
- add items in a listview and show items in this listview while still adding item (kodi would refresh the canvas (user view), so user would see list with 1 item added, the 2 items added, then 3 items added, ...)
- draw some pictures on the canvas, user would see first paint eg poster, then update canavs, then draw fanart, then canvas updates again, ....
This is 'slow'
When you have a lock/unlock funtion, it is almost always a good idea to use those because it speeds things up (sometimes enormously).
You could test this with a listview, shown on the screen, that you populate with 500000 or more items, if you can lock/unlock it is possible this would be 50 times or more faster (experience of me in another language, not yet used/tested in Kodi).
Just do not forget to unlock, or no updates get painted on the canvas... (Kodi appears to 'hang')
Add-on :
Bluray iso utils Rewrite of BR_iso_enhancements
Add-on :
BR_iso_Enhancements Give theatrical & directors cut from the same bluray iso each their own library entry, use bluray iso's of tv shows as if they are already ripped.
Posts: 1,355
Joined: Oct 2011
Reputation:
70
I think it is deprecated in kodi
Posts: 17,859
Joined: Jul 2011
Reputation:
371
I very much doubt this and we simply forgot to remove it from the docs. Test will prove it or will look in source code
Posts: 7,133
Joined: May 2011
Reputation:
381
Thanks, guess no point in trying it....
Posts: 1,663
Joined: Jun 2011
Reputation:
119
Thanks for the info, I've removed lock/unlock from xbmcstubs