scrollview with images load very slow

Hey guys, I’m developing an application where I use a scrollview to show many images, and it may be the case you need to show more images of which can be viewed at a time.
 
So you can understand, my screen is the following:
 

 
Currently I have installed build 1100 and I have noticed the following problem: when I load into the scrollview more images of which can be viewed at the same time it takes a long time.However, when they are less images appear instantly.
 
I tested this myself in the build 1076 and everything works fine, with many pictures and few images, appear instantaneously.
 
My function to create the scrollview is more or less the following:

[lua]function newScrollGrid(params)

   local scrollView = widget.newScrollView{

        left           = params.left,

        top            = params.top,

        width          = params.width,

        height         = params.height,

        scrollWidth    = params.width,

        scrollHeight   = params.scrollHeight,

        maskFile       = params.maskFile, 

        hideBackground = true,

        horizontalScrollDisabled = true,

        verticalScrollDisabled = params.scrollVertical,

    }

   for i = 1, #params.img do

      img = display.newImageRect(…)

      scrollView:insert(img)

   end

   

end[/lua]

I hope your help. I need very urgent finish this application for my client. If it is a bug, please confirm it to report it.

regards

I have noticed this as well but my case is a little different.  I am loading about 50 images in a scroll view but they are retina display high quality pictures.  about 600px by 600px images.  

I figured this is due to the size of the images i am loading.  It appears the scroll view does not show up until it has loaded… Everything.  is there anyway to get the scrollview to show up and just add the images to the view as its loading them.  verses loading everything before you get the initial display ?

My images are small, 60 x 60 pixels, with a very small size, and if I test my application in build 1076 the load very fast.

@team1, it’s likely a renderFrame opengl type issue-- ie, you would have to load your images in chunks, or one at a time (giving control back to the system between chunks) so that the system can render them out as they are loaded…

So, if instead of loading them all at once you loaded them in batches (triggered by timer.performwithdelay, for example), then they would show up in the batches you cut it into… (as immediately as each batch finished, and gave control back to the OS).

Essentially, if you have a function that loads 100 objects, NONE of the 100 object will display, until the closing brace of the function executes (not once they are loaded/inserted!). Once the closing brace is executed, the OS gets a chance to render your buffer to the screen… To get around it, break your load into chunks. As each chunk (even down to a single picture if you want)  loads, and the function (thread) it was loaded in terminates, the output will be shown onscreen.

I think I have not explained well, in my scrollview object can appear at once 25 pictures.

Well, if I show only 25 images in the scrollview, when you create the object and is drawn on the display all quickly and instantly:

However, by just adding one more image, ie, 26 images (one would be hidden), when you create the object and is drawn on the screen is not fast and takes a few seconds:

This is happening to me on an Android device and the build 1100, however, with the 1076 this did not happen.

Another thing to consider is that the simulator always work quickly, without depending on the build you have installed, but I guess it’s because my computer is very powerful.

I hope I explained better and podais I understand.

Help please!

regards

if you want to change the size,  it can be easy

I do not understand what you mean

I have noticed this as well but my case is a little different.  I am loading about 50 images in a scroll view but they are retina display high quality pictures.  about 600px by 600px images.  

I figured this is due to the size of the images i am loading.  It appears the scroll view does not show up until it has loaded… Everything.  is there anyway to get the scrollview to show up and just add the images to the view as its loading them.  verses loading everything before you get the initial display ?

My images are small, 60 x 60 pixels, with a very small size, and if I test my application in build 1076 the load very fast.

@team1, it’s likely a renderFrame opengl type issue-- ie, you would have to load your images in chunks, or one at a time (giving control back to the system between chunks) so that the system can render them out as they are loaded…

So, if instead of loading them all at once you loaded them in batches (triggered by timer.performwithdelay, for example), then they would show up in the batches you cut it into… (as immediately as each batch finished, and gave control back to the OS).

Essentially, if you have a function that loads 100 objects, NONE of the 100 object will display, until the closing brace of the function executes (not once they are loaded/inserted!). Once the closing brace is executed, the OS gets a chance to render your buffer to the screen… To get around it, break your load into chunks. As each chunk (even down to a single picture if you want)  loads, and the function (thread) it was loaded in terminates, the output will be shown onscreen.

I think I have not explained well, in my scrollview object can appear at once 25 pictures.

Well, if I show only 25 images in the scrollview, when you create the object and is drawn on the display all quickly and instantly:

However, by just adding one more image, ie, 26 images (one would be hidden), when you create the object and is drawn on the screen is not fast and takes a few seconds:

This is happening to me on an Android device and the build 1100, however, with the 1076 this did not happen.

Another thing to consider is that the simulator always work quickly, without depending on the build you have installed, but I guess it’s because my computer is very powerful.

I hope I explained better and podais I understand.

Help please!

regards

if you want to change the size,  it can be easy

I do not understand what you mean