cocos关闭重启问题
ljs19850321 opened this issue · comments
Lion commented
cocos关闭和重新开启问题
v2.2.2
问题是:关闭的时候内存可以正常释放, 但是第二次重启的时候会出现黑屏的现象。找了一下原因,是DeviceGraphics这类引起的。我要是强行delete DeviceGraphics 类,黑屏现象没了,但是会有内存溢出的错误。
求助一下 大神们 能不能指导一下
@ PatriceJiang
Steven Cheung commented
You need to stop the runloop first.
cocos2d::Application::getInstance()->onPause();
cocos2d::Application::getInstance()->stop();
refer to my post
https://forum.cocos.org/t/cocos2-x/98806