我注意到在关闭 AndEngine 的 SimpleBaseGame 活动后,所有常见的活动都运行得很慢,如果我再次启动 AndEngine 活动,它的运行速度也很慢。好像还有一些数据留在内存中。我试着用这个:
@Override
protected void onStop() {
    super.onStop();
    unloadTextures();
    finish();
}
protected void unloadTextures() {
    for (IEntity entity : objects) {
        if (entity != null) {
            entity.detachSelf();
        }
    }
    for (ITexture atlas : atlases) {
        textureManager.unloadTexture(atlas);
    }
}
但这无济于事。请告诉我如何正确卸载资源?我找到了 GLES1 的解决方案,但在这里不起作用。