ZhouWeikuan / cocos2d

cocos2d for android, based on cocos2d-android-0.82, and now ported from cocos2d-iphone 0.99.4. The googlecode address is here: http://code.google.com/p/cocos2d-android-1/ . There are several demos to watch.
609 stars 291 forks source link

Big issues #32

Open fox815 opened 13 years ago

fox815 commented 13 years ago

FPS keeps dropping, and at the end it crashes. Please can anyone help me how to solve this? Thanks in advance.

dustinanon commented 13 years ago

There's a few things you can do to help.

First, post the error that you're getting from the stack trace after the crash.

Second, try running a profiler to see which processes are taking the most time and resources.

Third, try debugging your own code to see if it's not something you're doing outside of the engine that might cause the error.

It's really hard for us to determine what the problem might be without more information, but we're all willing to help! :)

fox815 commented 13 years ago

you could add sprite and remove sprite again and again,then the fps will keep dropping. Thank you. maybe 15-20 mins

fox815 commented 13 years ago

For eg,

You could CLabel.SetString again and again in game logic,the fps will keep dropping. I have read the source code,maybe CCTexture2D.releaseTexture have not been called,so glDeleteTextures havn't been called. This will make fps keep dropping.