Re: [iOS] Block animation kills performance

2011-08-04 Thread Matt Neuburg
On Sun, 31 Jul 2011 16:20:48 -0700, Rick Mann rm...@latencyzero.com said: Xcode 3.2.6, iOS 4.3. My app shows a heartbeat as a flashing red square. Once each second, I execute the following code. If I use the block style, overall performance of the app suffers greatly (the UI becomes

Re: [iOS] Block animation kills performance

2011-08-04 Thread Rick Mann
Thanks! On Aug 4, 2011, at 11:02 , Matt Neuburg wrote: On Sun, 31 Jul 2011 16:20:48 -0700, Rick Mann rm...@latencyzero.com said: Xcode 3.2.6, iOS 4.3. My app shows a heartbeat as a flashing red square. Once each second, I execute the following code. If I use the block style, overall

Re: [iOS] Block animation kills performance

2011-08-01 Thread Roland King
On Aug 1, 2011, at 8:08 AM, Rick Mann wrote: On Jul 31, 2011, at 17:04 , Roland King wrote: On Aug 1, 2011, at 7:32, Rick Mann rm...@latencyzero.com wrote: On Jul 31, 2011, at 16:23 , Hunter Hillegas wrote: Are you sure you don't need UIViewAnimationOptionAllowUserInteraction and

Re: [iOS] Block animation kills performance

2011-08-01 Thread Rick Mann
Thank you, Roland, for that thorough explanation. Now I understand what's going on and why. I will write a bug, if only to get the docs improved. -- Rick On Aug 1, 2011, at 3:38 , Roland King wrote: On Aug 1, 2011, at 8:08 AM, Rick Mann wrote: On Jul 31, 2011, at 17:04 , Roland King

[iOS] Block animation kills performance

2011-07-31 Thread Rick Mann
Xcode 3.2.6, iOS 4.3. My app shows a heartbeat as a flashing red square. Once each second, I execute the following code. If I use the block style, overall performance of the app suffers greatly (the UI becomes unresponsive to touches). If I animate the more traditional way, UI responsiveness

Re: [iOS] Block animation kills performance

2011-07-31 Thread Hunter Hillegas
Are you sure you don't need UIViewAnimationOptionAllowUserInteraction and animateWithDuration:delay:options:animations:completion:? On Jul 31, 2011, at 4:20 PM, Rick Mann wrote: Xcode 3.2.6, iOS 4.3. My app shows a heartbeat as a flashing red square. Once each second, I execute the

Re: [iOS] Block animation kills performance

2011-07-31 Thread Rick Mann
On Jul 31, 2011, at 16:23 , Hunter Hillegas wrote: Are you sure you don't need UIViewAnimationOptionAllowUserInteraction and animateWithDuration:delay:options:animations:completion:? No, I'm not sure :-) I've never worried about that option before, and don't know why it would be different

Re: [iOS] Block animation kills performance

2011-07-31 Thread Roland King
On Aug 1, 2011, at 7:32, Rick Mann rm...@latencyzero.com wrote: On Jul 31, 2011, at 16:23 , Hunter Hillegas wrote: Are you sure you don't need UIViewAnimationOptionAllowUserInteraction and animateWithDuration:delay:options:animations:completion:? No, I'm not sure :-) I've never

Re: [iOS] Block animation kills performance

2011-07-31 Thread Rick Mann
On Jul 31, 2011, at 17:04 , Roland King wrote: On Aug 1, 2011, at 7:32, Rick Mann rm...@latencyzero.com wrote: On Jul 31, 2011, at 16:23 , Hunter Hillegas wrote: Are you sure you don't need UIViewAnimationOptionAllowUserInteraction and

Re: [iOS] Block animation kills performance

2011-07-31 Thread Rick Mann
On Jul 31, 2011, at 17:04 , Roland King wrote: On Aug 1, 2011, at 7:32, Rick Mann rm...@latencyzero.com wrote: On Jul 31, 2011, at 16:23 , Hunter Hillegas wrote: Are you sure you don't need UIViewAnimationOptionAllowUserInteraction and