Sluggish on Mobile Device
Sannyasin Brahmanathaswami
brahma at hindu.org
Tue Aug 1 23:10:13 EDT 2017
@ monte:
Elanor has the project link to our app on Git Hub if you are interested. I was going to submit a business support request to have your team examine that stack and see if there was a way to optimze it but I think Jacque has the bottom line:
the "Siva-Siva-Portal.livecode" stack is what Jacqueline is referring to. there is a series of "link" panels or subgroups. each includes
"rows" with
414 wide grc about 100px high
Left site is a text field with the link "label"
right side is a small thumbnail.
These are then stacked on top of each other dynamically, based on a JSON file that defines both the content of the row, what image is used etc.
It works rather well, surprising fast to build even on Android. BUT these are all then grouped into one big group that is assigned the scrolling behavior…
AcceleratedRendering does help, because, we presume, the group is not a free standalone group on top of the card.
ergo, until the Datagrid2 initiative is complete, apparently we have no solution.
but you can try:
git at github.com:Himalayan-Academy/Siva-Siva-App.git
be sure to check out the "nightly" branch… which is the most up-to-date… then you boot Siva-Siva-App.livecode (launcher stack which is never close)
and after it init's (starts using all the libs) then it opens the Siva-Siva-Portal.livecode stack
that’s the one that "jitters." when it scrolls, quite a few beta testers who "are sensitive" have pointed this out… Others seem not to care, they are focused on content/navigation and not necessarily screen performance… it's fast enough, just "ugly scrolling"
The structure is
card "portal"
group "Portal Layout" # contains 2 groups
group "SivaSiva Portal Scrolling" # this is the group that scrolls very badly no matter what we do.
# Sub groups
Header-group
row 1 -(small group)
row 2 -(small group)
row 3 -(small group)
row 4 -(small group)
row 5 -(small group)
group "SivaSiva Portal Navigation
# this a fixed tool bar at the bottom of the screen
Ahhh, I wonder if we only had two groups like this
card "portal"
group "SivaSiva Portal Scrolling" # this is the group that scrolls very badly no matter what we do.
# Sub groups
Header-group
row 1 -(small group)
row 2 -(small group)
row 3 -(small group)
row 4 -(small group)
row 5 -(small group)
group "SivaSiva Portal Navigation
# this a fixed tool bar at the bottom of the screen
so that the group that scrolls is *not* inside another group… if accelerated Rending make it scroll better.
BR
On 7/31/17, 5:22 PM, "use-livecode on behalf of J. Landman Gay via use-livecode" <use-livecode-bounces at lists.runrev.com on behalf of use-livecode at lists.runrev.com> wrote:
On 7/29/17 11:02 PM, Mark Waddingham via use-livecode wrote:
>It sounds like *something* in the group structure is causing
>accelRendering not to be effective (although I'm not sure what from the
>description).
@Mark: I've just found why it's failing. It's the stack structure, not
the engine. That's what happens when a lot of people work on the same
project; it changed without my noticing.
More information about the use-livecode
mailing list