I can’t show this one, because its just a feeling, but it seems to me that everything based on the position changed…
I can’t show this one, because its just a feeling, but it seems to me that everything based on the position changed event is less smooth since b4. Some Animations even get that slow, that they can’t be called animations…
Pierre Hébert I’ll send you an example via email
]]>« Another small bug Pierre Hébert (Previous Post)
< ![CDATA[
Thanks, I received it. I will load it and keep you informed.
]]>
< ![CDATA[
Ok, I found the reason. There was a change in behavior of the Item.setBoxBackground method in b4: it is now set persistently, and as a consequence it is slower due to file copy.
Maybe the method is called too often, but probably I need to split the method in two variants:
public void setBoxBackground (Image image, String state)
public void setBoxBackground (Image image, String state, boolean persistant)
The first one being not persistent as before.
http://www.pierrox.net/android/applications/lightning_launcher/script/reference/net/pierrox/lightning_launcher/script/api/Item.html#setBoxBackground(net.pierrox.lightning_launcher.script.api.Image, java.lang.String)
]]>
< ![CDATA[
Ok, so thats for this one. But especially item rotation is also slow.
]]>
< ![CDATA[
Is there a rotation in your template that I could test ?
]]>
< ![CDATA[
No, but you can load one of my animations with rotation from the apk as example…
]]>
< ![CDATA[
Ok, I will do that
]]>
< ![CDATA[
I tried with turn, but I don’t see a real difference (around 20 items). Is there anything I should look in particular ?
]]>
< ![CDATA[
Pierre Hébert Dunno. As i said, its just a feeling. It seems to be lagging more on my device. I had ~5fps in animation with just 8 items… I haven’t tried but I thought it was smoother on previous versions…
]]>
< ![CDATA[
I was getting ~2fps on page scrolling. I actually ended up disabling my position change script because of it. Likely related..
Edit: reactivated script and commented out setBoxBackground. It deffinately was the cause
]]>
< ![CDATA[
I have some position change scripts, and they work fine for me. No noticeable lag :/
]]>
< ![CDATA[
The lag is definitely related to specific functions. I don’t know which exactly.
]]>