GlennChiu / GC3DFlipTransitionStyleSegue

iBooks-style 3D flip transition animation rendered in OpenGL ES 2.0 and wrapped in a UIStoryboardSegue subclass
512 stars 65 forks source link

latest fix and memory problem #8

Open rschlacter opened 11 years ago

rschlacter commented 11 years ago

hi,

thanks for the great transition animation.

was using it for a while, but updated it today with the mapkit fix of setting eaglcontext to nil.

this fix causes memory warning consistently after 3 flips and subsequent flips are very very slow (i.e. > 10secs), if at all. i also set the sourceView and destinationView to weak and deallocated the dest controller and nilled the textures in the dealloc, but i think there is some opengl context memory bug here.

secondly, removingthe fix, still causes memory warning, but not after 3 flips, but litttle later - so it is not just the latest fix, but there's some other memory issue, although i couldn't spot it.

as a reference, i tested with other transitions such as nav and modal, which work fine for dozens of flips without any memory warnings.

hope you can look into it - would be a shame not to use this nice transition.

thanks.

rschlacter commented 11 years ago

the fix i was referring to which causes the problem https://github.com/GlennChiu/GC3DFlipTransitionStyleSegue/issues/5