slow loading jpg images
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 349
- Joined: Tue Oct 28, 2008 1:23 am
- Contact:
slow loading jpg images
Hi: I have a stack running on an iPad, and the jpg URL images are loading very slowly. This is partially due to the Wifi connection on the iPad being slower than the ethernet on my desktop machine, but they load a LOT slower than the same URL images shown in the browser on the iPad. I am resizing the images in my stack - so maybe that has something to do with the slowness.
Any ideas on how I could speed that up? I need to show two, 1600 x 800 pixel images on a full iPad screen. Is there a way to cache the images in the background in advance?
thanks
Greg
Any ideas on how I could speed that up? I need to show two, 1600 x 800 pixel images on a full iPad screen. Is there a way to cache the images in the background in advance?
thanks
Greg
Re: slow loading jpg images
Hi Greg,
That's an interesting observation. Are you using LC 5? RunRev claims LC 5 to be 10 times faster with regard to graphics rendering. What happens if you include the picture in your standalone as a referenced image file?
Kind regards,
Mark
That's an interesting observation. Are you using LC 5? RunRev claims LC 5 to be 10 times faster with regard to graphics rendering. What happens if you include the picture in your standalone as a referenced image file?
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
-
- Posts: 349
- Joined: Tue Oct 28, 2008 1:23 am
- Contact:
Re: slow loading jpg images
I'm running LC 4.6.0
I've used referenced image files and they draw very quickly, so I don't think that is the issue. The slowness is with loading the .jpg image from the URL. I have also tried to LOAD the urls in advance which is supposed to place them in memory (cache), but this only works on the OSX app - and does NOT work on iOS app.
Is there some other way to preload these .jpg ULRs into memory in iOS in advance?
I've used referenced image files and they draw very quickly, so I don't think that is the issue. The slowness is with loading the .jpg image from the URL. I have also tried to LOAD the urls in advance which is supposed to place them in memory (cache), but this only works on the OSX app - and does NOT work on iOS app.
Is there some other way to preload these .jpg ULRs into memory in iOS in advance?
Re: slow loading jpg images
Hi,
How large are those files and how long does it take your app to download them?
Best,
Mark
How large are those files and how long does it take your app to download them?
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
-
- Posts: 349
- Joined: Tue Oct 28, 2008 1:23 am
- Contact:
Re: slow loading jpg images
about 2000 k each and 8 seconds to draw both images. If I could cache all of the URL's for these images, they would probably draw instantly.
Re: slow loading jpg images
Hi,
2MB for a picture on a mobile device is really huge. Try using smaller pictures. 80K should be more than enough. My iPhone often needs a few seconds to download any file larger than a few K. 8 seconds for a 2MB picture doesn't seem so bad.
Kind regards,
Mark
2MB for a picture on a mobile device is really huge. Try using smaller pictures. 80K should be more than enough. My iPhone often needs a few seconds to download any file larger than a few K. 8 seconds for a 2MB picture doesn't seem so bad.
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode