Hey all, I’m hoping to compile some general tips on performance optimization of Shinobi Grids.
I have a grid that is working well, but the framerate while scrolling is around 30 fps. It tends to drop frames and can get as low as 20fps.
The grid cells are a bit complicated, each containing a number of subviews (uilabels, image views, custom drawing) and collection views. I’m reusing cells, but when a cell gets reused, quite a lot of work may need to be redone. I’m considering some of the techniques that apple recommends as far as drawing to an image then caching the image, but the problem with that is I need to keep the collection views interactive / scrollable.
Another piece of welcome feedback would be methods of diagnosing and improving the performance. My regular technique of using Instruments -> Time Profiler doesn’t seem to be yielding a great return.