2021-09-11, 13:33
Hi!
The bounce effect has been broken since Kodi 17.
Essentially the text starts moving properly and then it starts jittering.
I've worked with @Milhouse on figuring out when it became broken and it was LibreELEC.tv Leia build #0208.
The changelog is here:
https://forum.kodi.tv/showthread.php?tid...pid2520397
As far as I can tell the issue is with the following:
Application: Add decay before python door closes (7066e497)
Application: Allow python door to open for up to 80ms (5d6c8abf)
In order to make the text bounce around the screen I need to use waitForAbort(0.02).
Essentially the loop needs to move text every 20ms so that it looks smooth.
I've also worked with @popcornmix
And he pointed out this is happening because the screensaver is calling into Kodi too often (50 times a second).
He said that if I call in less than once per vsync it should be better.
He suggested I use python sleep and then once a second call self.monitor.waitForAbort(0.02).
Unfortunately I don't know how to do that, I've learned Python by myself just enough to be able to create this screensaver, so I'm completely out of my depth.
I use self.monitor.waitForAbort(0.02) as means of setting the "speed" of the main loop that essentially controls the screensaver.
I don't know how use python sleep instead of it, and then once per second call self.monitor.waitForAbort(0.02).
If anyone can help that would be great, as I would like to bring back the nice looking bounce effect to the screensaver.
This is the screensaver code:
https://github.com/vdb86/screensaver.dig...default.py
The bounce effect has been broken since Kodi 17.
Essentially the text starts moving properly and then it starts jittering.
I've worked with @Milhouse on figuring out when it became broken and it was LibreELEC.tv Leia build #0208.
The changelog is here:
https://forum.kodi.tv/showthread.php?tid...pid2520397
As far as I can tell the issue is with the following:
Application: Add decay before python door closes (7066e497)
Application: Allow python door to open for up to 80ms (5d6c8abf)
In order to make the text bounce around the screen I need to use waitForAbort(0.02).
Essentially the loop needs to move text every 20ms so that it looks smooth.
I've also worked with @popcornmix
And he pointed out this is happening because the screensaver is calling into Kodi too often (50 times a second).
He said that if I call in less than once per vsync it should be better.
He suggested I use python sleep and then once a second call self.monitor.waitForAbort(0.02).
Unfortunately I don't know how to do that, I've learned Python by myself just enough to be able to create this screensaver, so I'm completely out of my depth.
I use self.monitor.waitForAbort(0.02) as means of setting the "speed" of the main loop that essentially controls the screensaver.
I don't know how use python sleep instead of it, and then once per second call self.monitor.waitForAbort(0.02).
If anyone can help that would be great, as I would like to bring back the nice looking bounce effect to the screensaver.
This is the screensaver code:
https://github.com/vdb86/screensaver.dig...default.py