More discoveries today.
-
Sometimes when the accelerometer lags, the buttons stop also to respond.
-
On an old iPhone 4 the warning ( <Warning>: CoreAnimation: updates deferred for too long ) comes up when you run the application for the first time. This leads to accelerometer lag + buttons not responding. So this problem is not only when you suspend and resume.
On this old iPhone 4 “<Warning>: CoreAnimation: updates deferred for too long” comes up and messes up the accelerometer and buttons on resume after suspend also.
The effects on iPhone 4 seem to be much worse compared to iPhone 5. The accelerometer and buttons lag for longer time and it happens more frequently.
I honestly don’t know how it can possibly defer something when the app just started…
What did the engineers say? What is causing the CoreAnimation error?
Hi Ivan,
I haven’t received a response yet, but I’ll let you know when I hear back. Out of curiosity, can you please provide us with your system details?
-
Which build # of Corona SDK are you using?
-
Which version of OS X?
Thanks,
Brent
Hi!
Corona Version 2014.2189 (2014.3.6)
OS X 10.9.3 (13D65)
Hi Ivan,
The engineers will need a bug case/report filed for this, as by our standard. Can you create a simple test project which shows this issue and submit it as a bug?
Thanks,
Brent
Hi!
Never done it before. What exactly do you mean by test project. Corona project?
Nevermind, found instructions on the website. Will do!
So I tried to do a test project, but my game is too complex to isolate the problem.
However, after all this struggle I found a solution!
It turned out that if you disable accelerometer on suspend and then WAIT 1/3 of a second after resuming before turning the accelerometer on the warning doesnt show!
I guess CoreAnimation can catch up during that time. This worked on all iOS devices I have.
During this 1/3 of a second I just write “Get ready!” on the screen masking this bug as a feature.
So everything is fine now!
Great to hear Ivan! Hope your game goes well.