Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

In G2, scrollView is not that smooth?
Started by joe528 Dec 07 2013 12:21 AM

59 replies to this topic
[TOPIC CONTROLS]
Page 1 of 3 1 2 3
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

joe528

[GLOBAL: userInfoPane.html]
joe528
  • Contributor

  • 800 posts
  • Corona SDK

After migrating to G2.0, I feel the scrollView is not that smooth as before.

 

When scrolling up or down, sometimes the scroll jumps a bit.

 

Is it just my strange feeling? anyone sees the same thing?



[TOPIC: post.html]
#2

rakoonic2

[GLOBAL: userInfoPane.html]
rakoonic2
  • Contributor

  • 503 posts
  • Corona SDK

Have you enabled preloading again? Depending on your version of corona or not, it may not be the default. Can't guarantee it will fix the jerkiness, but as soon as I read about jerkiness, this is what springs to mind.

[TOPIC: post.html]
#3

joe528

[GLOBAL: userInfoPane.html]
joe528
  • Contributor

  • 800 posts
  • Corona SDK

@rakoonic 

 

What do you mean about "enable preloading"?



[TOPIC: post.html]
#4

cublah

[GLOBAL: userInfoPane.html]
cublah
  • Contributor

  • 379 posts
  • Corona SDK

I was have performance issues with scrollview and thought the same, make sure you have fps = 60 in your config.lua, I think Corona defaults to 30 if you don't put anything. I think you'll find it will be smoother.

 

I think Corona should default to 60 fps because you do want it to run as fast as possible.



[TOPIC: post.html]
#5

joe528

[GLOBAL: userInfoPane.html]
joe528
  • Contributor

  • 800 posts
  • Corona SDK

@cublah

 

I have changed to fps = 60, but there is still jerkiness.

 

For example, when I swipe up, the scrollView would act like this:

 

(1) the scrollview goes down a bit

(2) the scrollView jumps to the beginning

(3) the scrollView starts to go down.

 

It happens very fast and this situation doesn't look like fps related. Although the scrollView goes down eventually, the beginning shows some jerkiness.

 

It does not happen every time, but if I play around with it, I really feel so.



[TOPIC: post.html]
#6

Pers

[GLOBAL: userInfoPane.html]
Pers
  • Enthusiast

  • 86 posts
  • Corona SDK

I also experience choppiness with scrollview.

I have the entire canvas scroll vertically (there are several graphics in the scrollview, but no buttons or clickable objects) 

 

    scrollView2 = widget.newScrollView{
    width = 1140,
    height = 900,
    scrollWidth = 0,
    scrollHeight = 1140,
    horizontalScrollDisabled=true,
    hideScrollBar =true,
    backgroundColor = { 205/255, 251/255, 255/255}
}
 
When scrolling up or down, every once in a while it "jumps".
This didn't happen in G1.0 I have the latest build
 
Jorge


[TOPIC: post.html]
#7

joe528

[GLOBAL: userInfoPane.html]
joe528
  • Contributor

  • 800 posts
  • Corona SDK

When scrolling up or down, everyone in a while it "jumps".
This didn't happen in G1.0 I have the latest build

 

Exactly what I am experiencing & it's the reason I created this post.

 

It's really weird that only you & me feel the same for the G2 scrollView.

 

I could feel it right after I migrated to G2.

 

It's still the same with the latest build.



[TOPIC: post.html]
#8

Pers

[GLOBAL: userInfoPane.html]
Pers
  • Enthusiast

  • 86 posts
  • Corona SDK

I've experienced a lot of issues with G2 (choppy storyboard transitions, slow preloading of images, choppy scrollview, etc).

But my apps are heavy in graphics (lots of images, animations, and sounds) and this is perhaps why I am experiencing these issues and others don't.

The thing is, my app was smooth in G1 : /



[TOPIC: post.html]
#9

joe528

[GLOBAL: userInfoPane.html]
joe528
  • Contributor

  • 800 posts
  • Corona SDK

Recently my app received a 3-stars review (which is unusual because my app is average 5 stars with 1000 reviews in total) and the user said in his comment,

 

Since recent updates, the scrolling does not run as smooth as before

 

From this comment, I think "since recent updates" means the time I migrated my app to G2, and the "scrolling" means the scrollView.

 

Even the end user can feel the scrollView has something wrong

 

I really hope Corona can try to feel it. It's quite obvious if the app depends on scrollView a lot.



[TOPIC: post.html]
#10

Skatan

[GLOBAL: userInfoPane.html]
Skatan
  • Contributor

  • 547 posts
  • Corona SDK

I second this. My scrollView's are not remotely close to being as smooth as they were with G1.0, and worst of all this is the main complaint I receive from users right now..



[TOPIC: post.html]
#11

ksan

[GLOBAL: userInfoPane.html]
ksan
  • Corona Geek

  • 2,795 posts
  • Corona SDK

G2 caused at least a 6 months step-back for all widgets. We are still not where we were bug-fix wise pre G2... All in the name of progress... 



[TOPIC: post.html]
#12

primoz.cerar

[GLOBAL: userInfoPane.html]
primoz.cerar
  • Contributor

  • 455 posts
  • Corona SDK

@joe528

Make sure you have horizontalScrollDisabled=true when you create the scroll view. There is an issue like that I have seen when horizontal scrolling is enabled. It is meant to snap back to original y position if the y change was small and the x change passes the threshhold to start scrolling horizontaly. It is a bug in my opinion as vertical scrolling is supposed to respect the treshhold as well but it doesn't, it starts scrolling immediately even if you move just by one pixel.

 

I have a really graphics heavy widget based on scrollView and in G1 I had to rewrite the scrolling functions because when there were a lot of items on the scroll view the scrolling started to act up really badly. I'm just in the process of migrating it to G2 and thought the new scrolling is better than it was in G1. It all looks fine in simulator but I haven't done proper testing on device so I might have to resort back to my own scrolling functions if it has issues reported here.



[TOPIC: post.html]
#13

joe528

[GLOBAL: userInfoPane.html]
joe528
  • Contributor

  • 800 posts
  • Corona SDK

@primoz.cerar

 

Thanks for the info. But I just checked my code and tested again, I already have horizontalScrollDisabled = true, and the problem is still there, even with Simulator.

 

G1 didn't have such a problem I have been describing here.



[TOPIC: post.html]
#14

naveen_pcs

[GLOBAL: userInfoPane.html]
naveen_pcs
  • Contributor

  • 256 posts
  • Corona SDK

This happens to me too. When scrolling vertically, it jumps around quite often (easily noticeable). Never had this issue with G1.0. Glad to see I'm not alone.

 

Anyone from Corona willing to give a possible solution to this? It really sucks having jerky scrolling everywhere, especially when it's a main part of your app.



[TOPIC: post.html]
#15

nmichaud

[GLOBAL: userInfoPane.html]
nmichaud
  • Contributor

  • 492 posts
  • Corona SDK

Same problem with our app. It does not look polish.



[TOPIC: post.html]
#16

ksan

[GLOBAL: userInfoPane.html]
ksan
  • Corona Geek

  • 2,795 posts
  • Corona SDK

Daily 2178 seems to implement some improvement to transitions ... This might have an improvement effect on the scrollView too. Lets see...



[TOPIC: post.html]
#17

joe528

[GLOBAL: userInfoPane.html]
joe528
  • Contributor

  • 800 posts
  • Corona SDK

Just test with the latest build 2178, 

 

scrollView choppiness problem still exists.



[TOPIC: post.html]
#18

eja

[GLOBAL: userInfoPane.html]
eja
  • Contributor

  • 124 posts
  • Enterprise

I agree with all of you. This issue is a big deal especially when it comes to building business apps... I am sure the corona dev's notice/know about the jerkiness/performance issue of scrollView/tableView - hopefully they can start focusing on that more because this eventually could be a showstopper for a lot of people trying to build business apps with corona.



[TOPIC: post.html]
#19

trent7

[GLOBAL: userInfoPane.html]
trent7
  • Observer

  • 7 posts
  • Corona SDK

Any solutions to this issue or comments from corona staff?

[TOPIC: post.html]
#20

primoz.cerar

[GLOBAL: userInfoPane.html]
primoz.cerar
  • Contributor

  • 455 posts
  • Corona SDK

Is this an issue where you scroll over the top edge and before it snaps back try to scroll down again?

If it's something else please try post a short sample that shows this and explain what you do to make it jump and I might be able to help you get a quick fix.



[TOPIC: post.html]
#21

trent7

[GLOBAL: userInfoPane.html]
trent7
  • Observer

  • 7 posts
  • Corona SDK

Currently, this is just more of a nuisance. We have optimized all of the images that come from our DB to the exact size they appear in the feed and that has helped considerably. However, even with all the images optimized and sized properly, if you scroll the content as it slows down it jerks or appears choppy and at certain speeds it jerks. Just doesn't look smooth, consistently.

@Joe528 comments above describe a similar issue we are experiencing almost perfectly. 

I suppose my question is...
- is it possible to achieve native-like scrolling with Corona? That is smooth and consistent?
- is it some code/image optimization that we need to do on our end, OR is it simply related to G2.0?

[TOPIC: post.html]
#22

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,743 posts
  • Corona Staff

I know there are some scrollView fixes coming.  I don't know if this one is addressed or not. 

 

Rob



[TOPIC: post.html]
#23

trent7

[GLOBAL: userInfoPane.html]
trent7
  • Observer

  • 7 posts
  • Corona SDK

Thanks @Rob, that is really good news. Hopefully, the update will correct the issue.



[TOPIC: post.html]
#24

joe528

[GLOBAL: userInfoPane.html]
joe528
  • Contributor

  • 800 posts
  • Corona SDK

Ok, I filed a bug report for this problem, case 30976.

 

Attached is the code to test with. There is nothing but a scrollView with 20 text items.

 

Although it happens in Simulator too, it happens more often & obvious in actual devices. Besides, with actual devices you can swipe faster & it's how the end users operates.

 

Try to scroll up & down, sometimes go fast, try to bang on it.

 

You should be able to feel sometimes it's just not that smooth & jumps a bit here and there.

 

 

Attached Files



[TOPIC: post.html]
#25

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,743 posts
  • Corona Staff

I tried it in the sim and on my iPhone 5.  It seems pretty smooth to me.  Can you make a video?

 

 

Rob




[topic_controls]
Page 1 of 3 1 2 3
 
[/topic_controls]