aryaxt / iOS-Slide-Menu

iOS Slide Menu with ability to add both left and right menu, and built in gesture recognizer. Similar to Path and Facebook
Other
1.53k stars 359 forks source link

performance issue on right menu #123

Open hansimmmi opened 9 years ago

hansimmmi commented 9 years ago

I have rather heavy right side menu, which has tableview and many small images. Once I see the right menu, the overall system performance drastically goes down. I don't see much changes in memory usage or CPU though.

Is there anyway, if i can initiate the right menu every time I need to use and deallocate or deintiate as soon as closing it? Your advice will be highly appreciated!

aryaxt commented 9 years ago

I think that may make it slower, try this, and let me know if it makes a difference

when initializing the menu, or maybe do it in the menu itself

menuViewController.view.layer.shouldRasterize = YES;
menuViewController.view.layer.rasterizationScale = [UIScreen mainScreen].scale;
hansimmmi commented 9 years ago

Thanks, but no luck. I found one workaround, it's a bit silly though. Using the notification, when the right menu close, I bouce left menu, which somehow change right menu to left menu. My left menu has a few cells of string, so, the main view controller works fine now. It seems like only one view should exist. So.. it turns out that the solution will be changing right view to left view without calling bounce menu, since left bounce is redundant upon closing right menu.

hansimmmi commented 9 years ago

It seems like it's one view or another. It would be nice if there is a way to change the view on the background without showing them.

alexkotenko commented 9 years ago

Yes I have this problem too. I add more small image on right menu And the application Freese