after my app come back from ios backend, and wait for 3~5 seconds,my app's frame cost time grow to 0.019s( which in normal will be 0.001~0.002s).
this situation can stay 10~20 seconds, and can auto recover to normal state without any human inputs.
Anyone see this problem before?
normal.png (44.5 KB)
problem.png (44.4 KB)
after i using xcode profiling tools, and test the graphic statistics,
i found "EAGLContext_presentRenderBuffer" 's average time increase to 14000us。 that‘s the reason time cost per frame increase.
But how can i got the solution?
hi, guys here, and i come back.
i do lots of google search, and i think i found the reason and answer, just refer to this:http://www.ananseproductions.com/game-loops-on-ios/
anyone who's interested with this can take a look to this article,and i wish cocos2dx team can do some ‘ optimize’ for solve this problem.