Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 05-01-2010, 02:53 AM   #1 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 20
Avocado is on a distinguished road
Default Many Small Images

Hi everyone,

I'm wondering if anyone can point me in the right direction here... I'm working on an app that has me loading many images, about 8 KB in size, at the same time (~15 is what I'm experimenting with right now). My issue is once I've got everything loaded up, certain operations become very sluggish. Specifically, when I try to show an action sheet, it's painfully choppy.

I was originally creating the images with

Code:
[UIImage imageNamed:@"someImg.png"];
but I read that the imageNamed: method caches the images, which I don't want, so I switched to

Code:
[UIImage imageWithContentsOfFile:@"someFile"];
Unfortunately, that didn't solve the issue. Still choppy.

Any suggestions would be greatly appreciated.
Avocado is offline   Reply With Quote
Old 05-01-2010, 03:08 AM   #2 (permalink)
Registered Member
 
Join Date: Apr 2010
Posts: 56
aloew is on a distinguished road
Default

Are you loading the images when drawing the screen or before?

In my app (Personal Photo Clock) I implemented a cache loading the files only once and keeping them in memory.

I also implemented a lru-list which purges the oldest unused images. I had no problem neither with scrolling or something else...
__________________
TexturePacker - the best sprite sheet maker
PhysicsEditor - editor for box2d and chipmunk collision shapes
aloew is offline   Reply With Quote
Reply

Bookmarks

Tags
efficient, images, load, uiimage, uiimageview

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 331
21 members and 310 guests
Abidullah, baja_yu, cgokey, Domele, Duncan C, Fstuff, gbenna, givensur, guusleijsten, HowEver, iphonedevshani, jbro, JoeRCruso, mdpauley, n00b, newDev, seokwon lee, SLIC, stanny, Steven.C, WheyLabs
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,648
Threads: 94,113
Posts: 402,877
Top Poster: BrianSlick (7,990)
Welcome to our newest member, brandon6031
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 07:38 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0