Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lag when used with UIPageControl #43

Closed
rramnel opened this issue Nov 7, 2011 · 2 comments
Closed

Lag when used with UIPageControl #43

rramnel opened this issue Nov 7, 2011 · 2 comments

Comments

@rramnel
Copy link

rramnel commented Nov 7, 2011

Hi,

I am currently using SDWebImage to load images from a URL and display them as separate pages using UIPageControl. I am using the following code as it also does the caching.

[mageView setImageWithURL:[NSURL URLWithString:@"http://www.domain.com/path/to/image.jpg"]
placeholderImage:[UIImage imageNamed:@"placeholder.png"]];

But I noticed that when I launch the app and start scrolling through the pages, there is a slight lag now after this implementation. But after I scroll through the pages and go back again to the first page, the lag is gone. Do you know the reason for this and how I can fix it?

@rs
Copy link
Member

rs commented Nov 7, 2011

Please try to enable the new decoder optimization by adding this to your pch:

#define ENABLE_SDWEBIMAGE_DECODER

Tell me if it's any better.

@rramnel
Copy link
Author

rramnel commented Nov 10, 2011

Hi,

I tried your suggestion. Its still the same.

@rs rs closed this as completed Jan 16, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants